Spaces:
Runtime error
Runtime error
Александр Романов commited on
Commit ·
bab4655
1
Parent(s): a2d8cbd
Revert model
Browse files- app.py +6 -5
- model/biofilms_model.keras +3 -0
- model/biofilms_model_checkpoint.data-00000-of-00001 +2 -2
- model/biofilms_model_checkpoint.index +2 -2
- model/checkpoint +2 -0
app.py
CHANGED
|
@@ -8,16 +8,17 @@ import keras
|
|
| 8 |
from keras.models import Sequential
|
| 9 |
from keras.layers import Dense
|
| 10 |
|
| 11 |
-
input_len =
|
| 12 |
output_len = 2
|
| 13 |
model = Sequential()
|
| 14 |
-
model.add(Dense(input_len * 8, input_dim=input_len, activation='tanh', bias_initializer='zeros'
|
| 15 |
-
model.add(Dense(input_len * 8, activation='tanh', bias_initializer='zeros'
|
| 16 |
-
model.add(Dense(
|
|
|
|
| 17 |
model_checkpoint_path = os.path.join('model', 'biofilms_model_checkpoint')
|
| 18 |
model.load_weights(model_checkpoint_path)
|
| 19 |
|
| 20 |
-
materials_labels = ["
|
| 21 |
sharpness_values = ["волнистая", "пористая", "дисперсная", "грубодисперсная"]
|
| 22 |
|
| 23 |
def get_sample_dat(sample):
|
|
|
|
| 8 |
from keras.models import Sequential
|
| 9 |
from keras.layers import Dense
|
| 10 |
|
| 11 |
+
input_len = 34
|
| 12 |
output_len = 2
|
| 13 |
model = Sequential()
|
| 14 |
+
model.add(Dense(input_len * 8, input_dim=input_len, activation='tanh', bias_initializer='zeros'))
|
| 15 |
+
model.add(Dense(input_len * 8, activation='tanh', bias_initializer='zeros'))
|
| 16 |
+
model.add(Dense(input_len * 8, activation='tanh', bias_initializer='zeros'))
|
| 17 |
+
model.add(Dense(output_len, activation='sigmoid', bias_initializer='zeros'))
|
| 18 |
model_checkpoint_path = os.path.join('model', 'biofilms_model_checkpoint')
|
| 19 |
model.load_weights(model_checkpoint_path)
|
| 20 |
|
| 21 |
+
materials_labels = ["Графен", "Si/SiO2", "Al(OH)3", "TiO2", "Co", "V", "Fe/FeOn", "Cu", "Ag", "Cr", "Zn", "ZnS", "Mn", "Ca", "Mg", "Na", "NH4", "Muscovite", "Mont-t", "Kaolinite", "Chlorite", "Fillite", "Clinochlor", "Calcite", "Dolomite", "Barite", "Gypsum"]
|
| 22 |
sharpness_values = ["волнистая", "пористая", "дисперсная", "грубодисперсная"]
|
| 23 |
|
| 24 |
def get_sample_dat(sample):
|
model/biofilms_model.keras
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8be7746dc42e1ae3c9f64bbe71c412e29324feea076ed46129293f0f9d2ba81d
|
| 3 |
+
size 1934000
|
model/biofilms_model_checkpoint.data-00000-of-00001
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b5e31dbd11994694ee0b5fd5f170431f44b5640a267ccab321059bdefa235876
|
| 3 |
+
size 1906157
|
model/biofilms_model_checkpoint.index
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:52d7257721f6f2bf7cf41988a9ffb010bb0f4b34d7862f6680e1977d9dc75b1a
|
| 3 |
+
size 1670
|
model/checkpoint
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model_checkpoint_path: "biofilms_model_checkpoint"
|
| 2 |
+
all_model_checkpoint_paths: "biofilms_model_checkpoint"
|