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

IndexError: index 1090 is out of bounds for axis 1 with size 1024 #23

Open
Binyr opened this issue May 5, 2024 · 1 comment
Open

IndexError: index 1090 is out of bounds for axis 1 with size 1024 #23

Binyr opened this issue May 5, 2024 · 1 comment

Comments

@Binyr
Copy link

Binyr commented May 5, 2024

Thank you for your code!
Running command is:
python cc_utils/preprocess_shtech.py
--data_dir datasets/ShanghaiTech2/
--output_dir datasets/ShanghaiTech_processed
--dataset part_A_final
--mode train
--image_size 256
--ndevices 1
--sigma '0.5'
--kernel_size '3' \

Error is :
Traceback (most recent call last):
File "/media/SSD0/byr/Projects/crowdcounting/crowddiff/cc_utils/preprocess_shtech.py", line 401, in
main(args)
File "/media/SSD0/byr/Projects/crowdcounting/crowddiff/cc_utils/preprocess_shtech.py", line 129, in main
density = create_dot_map(locations, image.shape)
File "/media/SSD0/byr/Projects/crowdcounting/crowddiff/cc_utils/preprocess_shtech.py", line 224, in create_dot_map
density[y,x] = 1.
IndexError: index 1090 is out of bounds for axis 1 with size 1024

@funny000
Copy link

HI@Binyr
can you solve the problem?
what is the problem?

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

2 participants