Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Colab Notebook: Cannot import name 'container_abcs' from 'torch._six'

I’m trying to run the deit colab notebook found here:

https://colab.research.google.com/github/facebookresearch/deit/blob/colab/notebooks/deit_inference.ipynb

but I’m running into an issue in the second cell, specifically the import timm line, which returns this:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

ImportError: cannot import name ‘container_abcs’ from ‘torch._six’

>Solution :

 This problem has been previously raised here:

you need to have the last version of timm library, so replace the following line:

!pip install timm==0.3.2

by

!pip install timm
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading