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
ModuleNotFoundError: No module named 'transformers.pytorch_transformers' #59
Comments
Check if u have a transformers folder and files and put right directory path on the code. |
Hi @brightbsit, I have transformers folder, i git cloned that folder in above comment. I checked file in that folder too. There are folder pytorch_transformers. And what do you mean about " put right directory path on the code"? I clone from this git, both main and submodule. Am I supposed to put folder "transformers" somewhere else? |
I also have the same error and change the path on the code. change the line 5 in file "test.py". also "python setup.py build develop" might help. |
How shoud i change that line ?
What should i change it too? |
Umm it depends on the folder states. I think i just add . In the beginning |
Is this what you mean?
If so then the error is:
And what do you mean about folder states? I leaves the folder structure as in git. And |
I don't have any problem with the test. But I can't find test.py file on my oscar folder. Where did u get test.py file? the code will be gone when you fix the path. |
test.py is a file i created.
I know error happended because of it can't import file. To reduce time, i copy import code from To replicate error, you can run original cmd. It creates exactly same error. |
what is the error code when you type |
I don't see any error when i run Thank you for your patience. I just build a docker and run it in docker. I suspect this error has something to do with call library. |
pip uninstall transformers |
thank you @alice-cool |
Hi, thank for your work.
I'm trying to finetune for image captioning task. When i run
I encounter this error
I clone this repo with cmd
How could i fix this issue?
The text was updated successfully, but these errors were encountered: