Skip to content

Commit ab985e1

Browse files
committed
Update README.md
1 parent d1f9eaa commit ab985e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ A tensorflow2 implementation of some basic CNNs.
77
+ [MobileNet_V3](https://github.com/calmisential/MobileNetV3_TensorFlow2)
88
+ [EfficientNet](https://github.com/calmisential/EfficientNet_TensorFlow2)
99
+ [ResNeXt](https://github.com/calmisential/ResNeXt_TensorFlow2)
10+
+ [InceptionV4, InceptionResNetV1, InceptionResNetV2](https://github.com/calmisential/InceptionV4_TensorFlow2)
1011

1112
## Other networks
1213
For AlexNet and VGG, see : https://github.com/calmisential/TensorFlow2.0_Image_Classification<br/>

train.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ def process_features(features):
6262

6363
return images, labels
6464

65+
6566
if __name__ == '__main__':
6667
# GPU settings
6768
gpus = tf.config.experimental.list_physical_devices('GPU')
6869
if gpus:
6970
for gpu in gpus:
7071
tf.config.experimental.set_memory_growth(gpu, True)
7172

72-
7373
# get the dataset
7474
train_dataset, valid_dataset, test_dataset, train_count, valid_count, test_count = generate_datasets()
7575

@@ -120,7 +120,6 @@ def valid_step(image_batch, label_batch):
120120
train_loss.result().numpy(),
121121
train_accuracy.result().numpy()))
122122

123-
124123
for features in valid_dataset:
125124
valid_images, valid_labels = process_features(features)
126125
valid_step(valid_images, valid_labels)

0 commit comments

Comments
 (0)