-
Notifications
You must be signed in to change notification settings - Fork 6
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
RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu) #5
Comments
I was able to resolve it now~ |
Hi peonycabbage, I'm also researching this model to retrain it on a new dataset and noticed that you seem to have successfully run the code. I’m encountering issues with preprocessing the BPE and SIM folders, so I was wondering if you could provide some guidance on the preprocessing steps. It seems that you're also interested in topics related to Sign Language, so if possible, would you be open to sharing your contact information for further discussion? Alternatively, if you’re able to share your BPE and SIM folders, that would also be very helpful. Thank you! |
Hi @FrorsttzNguyen , I used the following code to generate cos_sim.pkl:
For name_to_video.json, I am sorry I do not have the relevant code for it anymore. I suggest follow https://github.com/neccam/slt/tree/master. Download their feature files, and see how they generated name_to_video_id. For BPE, the authors have provided instruction on their readme.md . Hope this helps! |
Thank you for sharing the code with us.
I would like to report an error.
\signjoey\batch.py", line 148, in sort_by_sgn_lengths
self.gls = self.gls[perm_index]
RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)
Any advice/suggestion is appreciated. Thank you very much~
The text was updated successfully, but these errors were encountered: