OpenGVLab / efficient-video-recognition

169 stars 15 forks source link

bug #6

Open DragonWang-cell opened 2 years ago

DragonWang-cell commented 2 years ago

Hello!When I run this code, it shows: AttributeError: 'dict' object has no attribute 'visual' Traceback (most recent call last): File "main.py", line 229, in if name == 'main': main() File "main.py", line 114, in main num_frames=args.num_frames, File "/home/wyl/efficient-video-recognition-master/model.py", line 170, in init backbone_config = self._create_backbone(backbone_name, backbone_type, backbone_path, backbone_mode) File "/home/wyl/efficient-video-recognition-master/model.py", line 202, in _create_backbone state_dict = weight_loader_fn(backbone_path) File "/home/wyl/efficient-video-recognition-master/weight_loaders.py", line 13, in load_weights_clip clip_model = clip_model.visual

Do you konw why?

linziyi96 commented 2 years ago

Would you mind providing the PyTorch version and the md5sum of the clip checkpoint you are using (by using the command md5sum /path/to/clip_checkpoint.pt)? Thanks.

DragonWang-cell commented 2 years ago

Ok,thank you again!