Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: CROP_SIZE #20

Open
txyxju1997 opened this issue Jan 8, 2022 · 3 comments
Open

AttributeError: CROP_SIZE #20

txyxju1997 opened this issue Jan 8, 2022 · 3 comments

Comments

@txyxju1997
Copy link

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

@csorg
Copy link

csorg commented Mar 8, 2022

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

@divineSix
Copy link

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.

@tridivb
Copy link
Owner

tridivb commented Sep 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants