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

Division By Zero Error? #6

Open
jay-compute opened this issue Jul 15, 2024 · 0 comments
Open

Division By Zero Error? #6

jay-compute opened this issue Jul 15, 2024 · 0 comments

Comments

@jay-compute
Copy link

I used the [ORIGINAL TotalCapture DATA W/ CORRESPONDING REFERENCE SMPL Poses] data and ran the command:

python3 preprocess_dip.py --input_dir '<RAW_DATA>' --output_dir '<SPL_DATA>'

as instructed; however, it gives me a division by 0 error for line 329:

print("found {} training files {:.2f} %".format(len(train_fnames_avail), len(train_fnames_avail) / tot_files * 100.0))
~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
ZeroDivisionError: division by zero

Based on the code right before, it seems to be gather the file names from the source directory. The <RAW_DATA> file has all of the .pkl files it came with when downloaded, so I'm not sure why it wouldn't process those files (assuming that is what is meant by "processing files from source directory").

I have the <RAW_DATA> and <SPL_DATA> folders both in the preprocessing folder (if that is in any way related to the issue).

Is there a reason why I may be encountering this issue? Thank you!

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

1 participant