another refactor

This commit is contained in:
hobogalaxy committed 2021-01-13 01:33:03 +01:00
1 parent 55e5f5e2c4
commit f2e242534e
7 files changed
+16 -10

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ from src.transforms import mnist_transforms
from PIL import Image
# the LitModel you import should be the same as the one you used for training!
from src.models.simple_mnist_classifier import LitModel
from src.models.mnist_model import LitModel
# ckpt can be a url!
@@ -12,7 +12,7 @@ def predict():
This method is example of inference with a trained model.
It Loads trained image classification model from checkpoint.
Then it loads example image and predicts its label.
Model used in simple_mnist_classifier.py should be the same as during training!!!
Model used in mnist_model.py should be the same as during training!!!
"""
CKPT_PATH = "epoch=0.ckpt"