segmentation_models.pytorch icon indicating copy to clipboard operation
segmentation_models.pytorch copied to clipboard

ModuleNotFoundError: No module named 'torchtext.legacy' in colab

Open lappemic opened this issue 2 years ago • 0 comments

When i tried to follow the notebook in Training model for pets binary segmentation with Pytorch-Lightning i encountered the problem that when the line

import pytorch_lightning as pl

is executed, the ModuleNotFoundError in the title appears. Just installing torchtext.legacy with

!pip install torchtext.legacy

did not solve the problem.

lappemic avatar Aug 20 '22 12:08 lappemic