Skip to content

Commit 1c65a23

Browse files
refactored test_main.py
1 parent 0a68c57 commit 1c65a23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def test_image_class(self):
3737
output_file_path = os.path.join(output_dir, "output_prediction.txt")
3838

3939
model = MobileNetV2()
40-
model.load_state_dict(torch.load(".model/weights/mobilenetv2.pt", weights_only=True)) # weights ported from torchvision
40+
model.load_state_dict(torch.load("./model/weights/mobilenetv2.pt", weights_only=True)) # weights ported from torchvision
4141
model.float()
4242

4343
predicted_label = main.inference(model, resized_image_path,

0 commit comments

Comments
 (0)