the Dependencies says torchvision >= 0.9.0
but LibMTL/model/resnet.py print the error "No module named 'torchvision.models.utils'" at "from torchvision.models.utils import load_state_dict_from_url"
my torchvision Version: 0.13.1+cu113, >= 0.9.0
Due to the version update of torchvision, the corresponding functions have been transferred to the new version of torch.
Change this line of code to“from torch.hub import load_state_dict_from_url”, and the program will run normally
I suggest adding a version judgment code while importing "load_state_dict_from_url"
the Dependencies says torchvision >= 0.9.0 but LibMTL/model/resnet.py print the error "No module named 'torchvision.models.utils'" at "from torchvision.models.utils import load_state_dict_from_url" my torchvision Version: 0.13.1+cu113, >= 0.9.0 Due to the version update of torchvision, the corresponding functions have been transferred to the new version of torch. Change this line of code to“from torch.hub import load_state_dict_from_url”, and the program will run normally I suggest adding a version judgment code while importing "load_state_dict_from_url"