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

sr_dataprep.py issue #5

Open
jparmache opened this issue Apr 28, 2021 · 1 comment
Open

sr_dataprep.py issue #5

jparmache opened this issue Apr 28, 2021 · 1 comment

Comments

@jparmache
Copy link

After running test.py and generating 280k files in data_dir, I ran 'python sr_dataprep.py'. It complains:
$ python3 sr_dataprep.py
./data_dir
Traceback (most recent call last):
File "sr_dataprep.py", line 74, in
ARR[idx] = f
IndexError: list assignment index out of range

Any suggestions what it could be?

@SaiRagh4
Copy link
Contributor

SaiRagh4 commented Sep 8, 2022

Hi

Apologies its been a while but this is because we limit the size of files that can be processed as it could lead to potential memory issues. This problem is related to number of files as you pointed out.
The fix for this is to increase the value of 12100 here: https://github.com/kiharalab/EM-GAN/blob/master/sr_dataprep.py#L73 to a bigger value ( can you try 25000?)

Thanks

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