Spaces:
Sleeping
Sleeping
Update metode.py
Browse files
metode.py
CHANGED
|
@@ -17,7 +17,7 @@ def load_model(model_path):
|
|
| 17 |
# Define the Learner object
|
| 18 |
learn = Learner(dls, model, metrics=accuracy)
|
| 19 |
|
| 20 |
-
return learn
|
| 21 |
|
| 22 |
# Load the model from the .pth file and create the necessary objects
|
| 23 |
#learn = load_model('my_model.pth')
|
|
|
|
| 17 |
# Define the Learner object
|
| 18 |
learn = Learner(dls, model, metrics=accuracy)
|
| 19 |
|
| 20 |
+
return learn
|
| 21 |
|
| 22 |
# Load the model from the .pth file and create the necessary objects
|
| 23 |
#learn = load_model('my_model.pth')
|