runtime error
Exit code: 1. Reason: current behavior is equivalent to passing `weights=ResNet50_Weights.IMAGENET1K_V1`. You can also use `weights=ResNet50_Weights.DEFAULT` to get the most up-to-date weights. warnings.warn(msg) Downloading: "https://download.pytorch.org/models/resnet50-0676ba61.pth" to /home/user/.cache/torch/hub/checkpoints/resnet50-0676ba61.pth 0%| | 0.00/97.8M [00:00<?, ?B/s][A 100%|ββββββββββ| 97.8M/97.8M [00:00<00:00, 264MB/s] /home/user/app/app/model.py:34: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature. model.load_state_dict(torch.load(model_path, map_location=device), strict=False) INFO:app.model:Loaded model from assets/models/FER_static_ResNet50_AffectNet.pt ERROR:app.model:Dynamic model file not found: assets/models/FER_dynamic_LSTM.pt Traceback (most recent call last): File "/home/user/app/app.py", line 3, in <module> from tabs.FACS_analysis import create_facs_analysis_tab File "/home/user/app/tabs/FACS_analysis.py", line 2, in <module> from app.app_utils import preprocess_frame_and_predict_aus File "/home/user/app/app/app_utils.py", line 27, in <module> pth_model_dynamic = pth_model_dynamic.to(device) AttributeError: 'NoneType' object has no attribute 'to'
Container logs:
Fetching error logs...