Skip to content

random.sample in siamese CNN tutorial don't work (anymore?) #4

Description

@MarcinMisiurewicz

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions