|
@@ -11,8 +11,8 @@ from scipy.ndimage import gaussian_filter
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
# Nalozimo testne podatke
|
|
|
- main_path_to_data = "C:/Users/Klanecek/Desktop/processed"
|
|
|
- model_folder = "trained_models/testrun123_v2"
|
|
|
+ main_path_to_data = "/data/PSUF_naloge/5-naloga/processed"
|
|
|
+ model_folder = "trained_models/testrun123"
|
|
|
|
|
|
with open (os.path.join(main_path_to_data, "test_info.json")) as fp:
|
|
|
test_info = json.load(fp)
|
|
@@ -20,7 +20,6 @@ if __name__ == "__main__":
|
|
|
# Nalozimo model, ga damo v eval mode
|
|
|
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
|
|
|
- model_folder = "trained_models/testrun123_v2/" # mapa naucenega modela
|
|
|
model = ModelCT()
|
|
|
model.to(device)
|
|
|
model.load_state_dict(torch.load(os.path.join(model_folder, "trained_model_weights.pth")))
|