facebookresearch / video-nonlocal-net

Non-local Neural Networks for Video Classification
Other
1.97k stars 325 forks source link

Error #75

Closed abhaygargab closed 3 years ago

abhaygargab commented 4 years ago

Hello,

Traceback (most recent call last): File "tools/test_net_video.py", line 351, in main() File "tools/test_net_video.py", line 346, in main store_vis=args.store_vis) File "tools/test_net_video.py", line 294, in test_net store_vis=store_vis) File "tools/test_net_video.py", line 110, in test_net_one_section test_model.build_model() File "/home/u1698461/Downloads/CATER-master/baselines/video-nonlocal-net/lib/models/model_builder_video.py", line 119, in build_model train=self.train, force_fw_only=self.force_fw_only File "/home/u1698461/Downloads/CATER-master/baselines/video-nonlocal-net/lib/models/model_builder_video.py", line 230, in create_data_parallel_model use_nccl=not cfg.DEBUG, # org: True File "/home/u1698461/anaconda3/envs/last/lib/python2.7/site-packages/caffe2/python/data_parallel_model.py", line 39, in Parallelize_GPU Parallelize(*args, **kwargs) File "/home/u1698461/anaconda3/envs/last/lib/python2.7/site-packages/caffe2/python/data_parallel_model.py", line 236, in Parallelize input_builder_fun(model_helper_obj) File "/home/u1698461/Downloads/CATER-master/baselines/video-nonlocal-net/lib/models/model_builder_video.py", line 207, in add_video_input batch_size=batch_size, File "/home/u1698461/Downloads/CATER-master/baselines/video-nonlocal-net/lib/models/model_builder_video.py", line 171, in AddVideoInput data, label = model.net.CustomizedVideoInput( File "/home/u1698461/anaconda3/envs/last/lib/python2.7/site-packages/caffe2/python/core.py", line 2205, in getattr ",".join(workspace.C.nearby_opnames(op_type)) + ']' AttributeError: Method CustomizedVideoInput is not a registered operator. Did you mean: []

I used the following command to install caffe2 with python=2.7: conda install pytorch-nightly-cpu -c pytorch

I tried to follow other instructions but could not understand where to paste caffe2_customized_ops/video