Create model.py
Browse files
model.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from keras.models import model_from_json
|
2 |
+
import numpy as np
|
3 |
+
|
4 |
+
|
5 |
+
|
6 |
+
json_file = open('xception.json', 'r')
|
7 |
+
loaded_file_json = json_file.read()
|
8 |
+
json_file.close()
|
9 |
+
|
10 |
+
model = model_from_json(loaded_file_json)
|
11 |
+
model.load_weights('xception_modelv2.h5')
|