runtime error

/home/user/.local/lib/python3.10/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead. warnings.warn( /home/user/.local/lib/python3.10/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=MobileNet_V2_Weights.IMAGENET1K_V1`. You can also use `weights=MobileNet_V2_Weights.DEFAULT` to get the most up-to-date weights. warnings.warn(msg) Downloading: "https://download.pytorch.org/models/mobilenet_v2-b0353104.pth" to /home/user/.cache/torch/hub/checkpoints/mobilenet_v2-b0353104.pth 0%| | 0.00/13.6M [00:00<?, ?B/s] 100%|██████████| 13.6M/13.6M [00:00<00:00, 219MB/s] Traceback (most recent call last): File "/home/user/app/app.py", line 11, in <module> model.load_state_dict(torch.load("Unet-Mobilenet.pt", map_location=device)) File "/home/user/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2103, in load_state_dict raise TypeError(f"Expected state_dict to be dict-like, got {type(state_dict)}.") TypeError: Expected state_dict to be dict-like, got <class 'segmentation_models_pytorch.decoders.unet.model.Unet'>.

Container logs:

Fetching error logs...