Update models/unet_gray2color.py
Browse files
models/unet_gray2color.py
CHANGED
@@ -2,9 +2,9 @@ import numpy as np
|
|
2 |
import tensorflow as tf
|
3 |
from tensorflow.keras.layers import (
|
4 |
Input, Dense, Conv2D, MaxPooling2D, UpSampling2D, Concatenate,
|
5 |
-
BatchNormalization, LayerNormalization, Dropout, MultiHeadAttention, Add, Reshape
|
6 |
)
|
7 |
-
from tensorflow.keras.models import Model
|
8 |
from tensorflow.keras.optimizers import Adam
|
9 |
from tensorflow.keras.callbacks import ModelCheckpoint, ReduceLROnPlateau, EarlyStopping
|
10 |
from tensorflow.keras.mixed_precision import set_global_policy
|
|
|
2 |
import tensorflow as tf
|
3 |
from tensorflow.keras.layers import (
|
4 |
Input, Dense, Conv2D, MaxPooling2D, UpSampling2D, Concatenate,
|
5 |
+
BatchNormalization, LayerNormalization, Dropout, MultiHeadAttention, Add, Reshape, Layer
|
6 |
)
|
7 |
+
from tensorflow.keras.models import Model, layers
|
8 |
from tensorflow.keras.optimizers import Adam
|
9 |
from tensorflow.keras.callbacks import ModelCheckpoint, ReduceLROnPlateau, EarlyStopping
|
10 |
from tensorflow.keras.mixed_precision import set_global_policy
|