many small improvements

This commit is contained in:
hobogalaxy committed 2020-11-29 16:04:00 +01:00
1 parent 8d55f151bd
commit ad0344d0a1
11 files changed
+90 -76

No files matched your search

+2 -2
View File
@@ -137,8 +137,8 @@ class SaveCodeToWandbCallback(pl.Callback):
"utils/callbacks.py",
"utils/init_utils.py",
"train.py",
"project_config.yml",
"run_configs.yml",
"project_config.yaml",
"run_configs.yaml",
]
self.model_path = os.path.dirname(inspect.getfile(lit_model.__class__))
self.datamodule_path = os.path.dirname(inspect.getfile(datamodule.__class__))
+2 -2
View File
@@ -8,8 +8,8 @@ import train
RUN_CONFIG_NAME = "MNIST_CLASSIFIER_V1"
# Load configs
project_config = train.load_config("../project_config.yml")
run_config = train.load_config("../run_configs.yml")[RUN_CONFIG_NAME]
project_config = train.load_config("../project_config.yaml")
run_config = train.load_config("../run_configs.yaml")[RUN_CONFIG_NAME]
# Initialize wandb
wandb.init()
+3 -1
View File
@@ -1,7 +1,9 @@
from models.simple_mnist_classifier.lightning_module import LitModel
from data_modules.mnist_digits_datamodule import transforms
from PIL import Image
# the LitModel you import should be the same as the one you used for training!
from models.simple_mnist_classifier.lightning_module import LitModel
def predict():
"""