farid678 commited on
Commit
e169b99
1 Parent(s): b42cc84

Create model.py

Browse files
Files changed (1) hide show
  1. model.py +11 -0
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')