Skip to content

Commit 549d452

Browse files
committed
orgnize folder
1 parent 19f534c commit 549d452

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cars_test.tgz
55
cars_train.tgz
66
custom_layers/__pycache__/
77
data/
8-
imagenet_models/
8+
models/
99
logs/
1010
cars_test/
1111
cars_train/

clean.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ rm logs/ -r
33
rm cars_test/ -r
44
rm cars_train/ -r
55
rm devkit/ -r
6-
rm training.log
6+
rm training.log

pre-process.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,4 @@ def process_test_data():
169169
# clean up
170170
shutil.rmtree('cars_train')
171171
shutil.rmtree('cars_test')
172-
shutil.rmtree('devkit')
172+
# shutil.rmtree('devkit')

resnet_152.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ def resnet152_model(img_rows, img_cols, color_type=1, num_classes=None):
149149

150150
if K.image_dim_ordering() == 'th':
151151
# Use pre-trained weights for Theano backend
152-
weights_path = 'imagenet_models/resnet152_weights_th.h5'
152+
weights_path = 'models/resnet152_weights_th.h5'
153153
else:
154154
# Use pre-trained weights for Tensorflow backend
155-
weights_path = 'imagenet_models/resnet152_weights_tf.h5'
155+
weights_path = 'models/resnet152_weights_tf.h5'
156156

157157
model.load_weights(weights_path, by_name=True)
158158

resnet_50.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ def resnet50_model(img_rows, img_cols, color_type=1, num_classes=None):
142142
# Load ImageNet pre-trained data
143143
if K.image_dim_ordering() == 'th':
144144
# Use pre-trained weights for Theano backend
145-
weights_path = 'imagenet_models/resnet50_weights_th_dim_ordering_th_kernels.h5'
145+
weights_path = 'models/resnet50_weights_th_dim_ordering_th_kernels.h5'
146146
else:
147147
# Use pre-trained weights for Tensorflow backend
148-
weights_path = 'imagenet_models/resnet50_weights_tf_dim_ordering_tf_kernels.h5'
148+
weights_path = 'models/resnet50_weights_tf_dim_ordering_tf_kernels.h5'
149149

150150
model.load_weights(weights_path)
151151

0 commit comments

Comments
 (0)