Spaces:
Running
on
Zero
Running
on
Zero
fix
Browse files- .gitignore +2 -0
- model_utils.py +1 -1
.gitignore
CHANGED
@@ -8,3 +8,5 @@ binoculars/__pycache__/detector.cpython-310.pyc
|
|
8 |
binoculars/__pycache__/__init__.cpython-310.pyc
|
9 |
__pycache__/text_analysis.cpython-310.pyc
|
10 |
__pycache__/binoculars_utils.cpython-310.pyc
|
|
|
|
|
|
8 |
binoculars/__pycache__/__init__.cpython-310.pyc
|
9 |
__pycache__/text_analysis.cpython-310.pyc
|
10 |
__pycache__/binoculars_utils.cpython-310.pyc
|
11 |
+
NN_classifier/__pycache__/neural_net_t.cpython-310.pyc
|
12 |
+
demo/__pycache__/__init__.cpython-310.pyc
|
model_utils.py
CHANGED
@@ -67,7 +67,7 @@ def load_ternary_model(model_dir='models/neural_network'):
|
|
67 |
input_size = scaler.n_features_in_
|
68 |
num_classes = len(label_encoder.classes_)
|
69 |
|
70 |
-
model = Neural_Network(input_size, hidden_layers=[
|
71 |
model.load_state_dict(torch.load(model_path, map_location=DEVICE))
|
72 |
model.eval()
|
73 |
|
|
|
67 |
input_size = scaler.n_features_in_
|
68 |
num_classes = len(label_encoder.classes_)
|
69 |
|
70 |
+
model = Neural_Network(input_size, hidden_layers=[128, 96, 64, 32], num_classes=num_classes, dropout_rate=0.1).to(DEVICE)
|
71 |
model.load_state_dict(torch.load(model_path, map_location=DEVICE))
|
72 |
model.eval()
|
73 |
|