Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to train on my own dataset? #77

Open
young169 opened this issue Feb 9, 2023 · 0 comments
Open

How to train on my own dataset? #77

young169 opened this issue Feb 9, 2023 · 0 comments

Comments

@young169
Copy link

young169 commented Feb 9, 2023

The dataset returns a list of str, so error happens at train_model.py line 79-line81
"
labels = Variable(torch.from_numpy(np.array(labels)).cuda())
labels_swap = Variable(torch.from_numpy(np.array(labels_swap)).cuda())
swap_law = Variable(torch.from_numpy(np.array(swap_law)).float().cuda())
"
cannot convert labels to np.ndarray

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant