Open oddmanru opened 1 year ago
installing python 3.8 solved this for me
python v3.10.12 torch v2.0.0 torchtext v0.15.1 torchdata v0.6.0
!python remove_anything.py
ModuleNotFoundError: No module named 'torchtext.legacy'
!pip uninstall -y torchtext !pip install torchtext==0.5.0 this is work for me
!pip uninstall -y torchtext !pip install torchtext==0.5.0 this is work for me
Yes, it works. Thanks !
!pip uninstall -y torchtext !pip install torchtext==0.5.0 this is work for me
Yes, it works. Thanks !
Hi, sorry to bother you but I have the same problem with torchtex.legacy on colab and even tiwh torchtext==0.5.0 it doesn't work... Do you have any advice or notebook that works?? Thank you in advance
try pip install torchtext==0.10.0
try pip install pytorch-lightning==1.8.3.post0
Hi there, I am trying to run this script on Googles Colab. I have encountered import error showing: "ModuleNotFoundError: No module named 'torchtext.legacy'" when the code attempted to import the Batch class using "from torchtext.legacy.data import Batch". After going through some investigation, I secured the issue that might be the incompatibility between the current torch-lightening and torchtext as the Batch class was deprecated and was fully replaced with torch's DataLoader. Moreover, it seems that the Batch class did not be used for loading batched data in Lama but it is part of code of metrics. Is there any quick fix for this issue? Or Can an updated version of torch-ligthening works well with this script?
Thanks.