You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
picking random sample from dataset in next_pair with random.sample(foo,1) will produce error now. It works with random.choice(foo) though - lines 53 and 60.
Also getting loss from loss_contrastive should now look like this (line 142):
loss_log.append(loss_contrastive.item())
Thanks for the tutorial!
The text was updated successfully, but these errors were encountered:
MarcinMisiurewicz
changed the title
random.sample don't work (anymore?)
random.sample in siamese CNN tutorial don't work (anymore?)
Jan 31, 2020
picking random sample from dataset in next_pair with random.sample(foo,1) will produce error now. It works with random.choice(foo) though - lines 53 and 60.
Also getting loss from loss_contrastive should now look like this (line 142):
loss_log.append(loss_contrastive.item())
Thanks for the tutorial!
The text was updated successfully, but these errors were encountered: