likyoo / Siam-NestedUNet

The pytorch implementation for "SNUNet-CD: A Densely Connected Siamese Network for Change Detection of VHR Images"
MIT License
246 stars 59 forks source link

eval.py accessing sunet-32.pt instead of snunet-32.pt #32

Closed patrickhwood closed 1 year ago

patrickhwood commented 1 year ago

The weights-20220718T230451Z-001.zip file has a bunch of snunet-*.pt files, but eval.py attempts to load weights/sunet-32.pt.

My patch:

index bd6bbaa..a215ba4 100644 --- a/eval.py +++ b/eval.py @@ -15,7 +15,7 @@ dev = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')

test_loader = get_test_loaders(opt)

-path = 'weights/sunet-32.pt' # the path of the model +path = 'weights/snunet-32.pt' # the path of the model model = torch.load(path)