slowfast_feature_extractor icon indicating copy to clipboard operation
slowfast_feature_extractor copied to clipboard

AttributeError: CROP_SIZE

Open txyxju1997 opened this issue 4 years ago • 3 comments

hello, i have a question, when i run 'python run_net.py --cfg ./configs/SLOWFAST_8x8_R50.yaml' to extract my video features, the problem of AttributeError: CROP_SIZE that confuses me. Thanks!

Traceback (most recent call last): File "run_net.py", line 25, in main() File "run_net.py", line 21, in main launch_job(cfg=cfg, init_method=args.init_method, func=test) File "/home/XX/slowfast/slowfast/utils/misc.py", line 311, in launch_job func(cfg=cfg) File "/home/XX/slowfast_feature_extractor/test_net.py", line 94, in test model = build_model(cfg) File "/home/XX/slowfast_feature_extractor/models/build.py", line 61, in build_model cfg.DATA.CROP_SIZE // 32 // pool_size[0][1], File "/home/XX/anaconda3/envs/slowfast/lib/python3.8/site-packages/yacs/config.py", line 141, in getattr raise AttributeError(name) AttributeError: CROP_SIZE

txyxju1997 avatar Jan 08 '22 14:01 txyxju1997

Hi, I also met this question. Do you solve it?

csorg avatar Mar 08 '22 14:03 csorg

Likewise, I was also able to reproduce this issue. Temporarily, I've bypassed it by altering the code referring to CROP_SIZE as TEST_CROP_SIZE, which is present in the config.

divineSix avatar Sep 27 '22 18:09 divineSix

Hello, Thank you for noticing this. Admittedly, I have not been maintaining this repo and hence the code might be out of date from the latest slowfast codebase which might cause conflicts. I will try to update it if I am free in the near future and look to solving the issue for the long term.

tridivb avatar Sep 27 '22 18:09 tridivb