yrcong / RelTR

RelTR: Relation Transformer for Scene Graph Generation: https://arxiv.org/abs/2201.11460v2
230 stars 45 forks source link

ImportError: cannot import name '_new_empty_tensor' #4

Closed CurtisDeCastro closed 1 year ago

CurtisDeCastro commented 2 years ago

Getting this error when trying to run inference.py-- is this related to version issues with python/conda? Did my best to triage the issue independently, but all I could find is that this is a known issue with pytorch that was fixed with python 3.6, however that is the version I'm running.

Appreciate you for all your work on this btw!

yrcong commented 2 years ago

Which pytorch version did you use? Could you provide more information like the error log?

linhuixiao commented 1 year ago

I successfully reproduced by following the author's description. maybe your numpy version not match or some environment problem.