omanaaja commited on
Commit
31a9e18
·
1 Parent(s): b12dc7b

Menambahkan model.json, my_model.h5, dan Model_Load.py ke dalam direktori utama

Browse files
Files changed (4) hide show
  1. HistoryLens +0 -1
  2. Model_Load.py +11 -0
  3. model.json +0 -0
  4. my_model.h5 +3 -0
HistoryLens DELETED
@@ -1 +0,0 @@
1
- Subproject commit 04003f1f57c6291496159f6242e3bbab3479ac43
 
 
Model_Load.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from keras.models import model_from_json
2
+
3
+ def load_model_from_files(json_path, weights_path):
4
+ with open(json_path, "r") as json_file:
5
+ loaded_model_json = json_file.read()
6
+
7
+ model = model_from_json(loaded_model_json)
8
+ model.load_weights(weights_path)
9
+ model.compile(optimizer='adam', loss='categorical_crossentropy', metrics=['accuracy'])
10
+ return model
11
+
model.json ADDED
The diff for this file is too large to render. See raw diff
 
my_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2287c3cb9f5bc04e70768b3ad9c06ef80ee42764c4b5b9c1c23f7702910d7132
3
+ size 11169040