-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
ImportError: cannot import name 'is_fx_tracing' from 'torch.fx._symbolic_trace' #4487
Comments
I'm having the same issue :( |
Same issue. Any solution? |
Same issue :(( |
Same issue, yesterday it worked with no errors. |
same error on colab... |
!!!
Its work for me, but i think it just temporary solution. |
Thank you |
This is the problem of detecron2 version, I solve it by installing suitable version in https://github.com/facebookresearch/detectron2/releases |
Same problem here, I tried very different combinations of torch, none of them works |
@leoliu37 could you please tell me which version did you installed exactly? |
@truong-xuan-linh hmm... dirty solution. |
anyone can help with it ? i tried commenting the code lines in poolers.py but the issue was not fixed |
@maziqueen79 I had the same error problem with this installation !pip uninstall torch -y And commenting the lines of poolers.py works for me and I'm training a maskrcnn model without problems |
It seems like this issue was introduced with the latest commit (36a65a0). Specifying the previous commit hash from august 4th to install detectron2 fixed this issue for me. |
Thank you all ! |
This is also affected other libraries such as Transformers - see: huggingface/transformers@1f3c228 Could we fix this on master? |
Error while running the Official Detectron2 Demo:
yesterday I ran it and it was working fine. Today, it is giving me error. Run code cell # 3 from the top. Where importing libraries. It gives error after the comment
# import some common detectron2 utilities
Link to the Cell:
https://colab.research.google.com/drive/16jcaJoc6bCFAQ96jDe2HwtXj7BMD_-m5#scrollTo=ZyAvNCJMmvFF
It gives error on running the following line
from detectron2 import model_zoo
but if you comment above line, it gives same error on next line i.e.,
from detectron2.engine import DefaultPredictor
Error is
ImportError: cannot import name 'is_fx_tracing' from 'torch.fx._symbolic_trace' (/usr/local/lib/python3.7/dist-packages/torch/fx/_symbolic_trace.py)
it is easily reproduceable as it is given by default notebook. Opened a fresh one from the link given on following page
https://github.com/facebookresearch/detectron2
Still the same error.
Someone maybe pushed something in last 24 hours that made it give this error.
The text was updated successfully, but these errors were encountered: