Skip to content

Commit b3c475b

Browse files
committed
update
1 parent 0022619 commit b3c475b

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ __pycache__/
55
custom_layers/__pycache__/
66
label_dict.txt
77
logs/
8+

demo.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
import keras.backend as K
88
import numpy as np
99

10-
from resnet_50 import resnet50_model_new
10+
from resnet_50 import resnet50_model
1111
from utils import draw_str
1212

1313
if __name__ == '__main__':
1414
img_width, img_height = 224, 224
1515
num_channels = 3
1616
num_classes = 80
1717

18-
model = resnet50_model_new(img_rows=img_height, img_cols=img_width, color_type=num_channels,
19-
num_classes=num_classes)
20-
model.load_weights('models/model.07-0.7091.hdf5')
18+
model = resnet50_model(img_rows=img_height, img_cols=img_width, color_type=num_channels,
19+
num_classes=num_classes)
20+
model.load_weights('models/model.85-0.7657.hdf5')
2121

2222
with open('scene_classes.csv') as file:
2323
reader = csv.reader(file)

0 commit comments

Comments
 (0)