object-wakeup icon indicating copy to clipboard operation
object-wakeup copied to clipboard

Error "ImportError: cannot import name 'ViTModel'"

Open RyanHangZhou opened this issue 2 years ago • 2 comments

Hi,

With PyTorch 1.0.0 and transformer (from 3.8 to 4.18), for running sample inference, we always have the problem: ImportError: cannot import name 'ViTModel'. The provided environment seems errorous for deployment. It seems that the pretrained model is obtained from a very early PyTorch version (1.0.0), while for installing transformer package, PyTorch 1.0.0 has incompatible issues.

Looking forward to your responses, thanks.

RyanHangZhou avatar Nov 03 '22 09:11 RyanHangZhou