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

ZeroDivisionError: integer division or modulo by zero #5

Closed
somilhyperanna opened this issue May 19, 2019 · 4 comments
Closed

ZeroDivisionError: integer division or modulo by zero #5

somilhyperanna opened this issue May 19, 2019 · 4 comments

Comments

@somilhyperanna
Copy link

somilhyperanna commented May 19, 2019

Running Latest Colab gives following exception while Training Model (Step 4).

Traceback (most recent call last):
File "/content/DeepFaceLab/mainscripts/Trainer.py", line 49, in trainerThread
device_args=device_args)
File "/content/DeepFaceLab/models/ModelBase.py", line 208, in init
self.sample_for_preview = self.generate_next_sample()
File "/content/DeepFaceLab/models/ModelBase.py", line 398, in generate_next_sample
return [next(generator) for generator in self.generator_list]
File "/content/DeepFaceLab/models/ModelBase.py", line 398, in
return [next(generator) for generator in self.generator_list]
File "/content/DeepFaceLab/samplelib/SampleGeneratorFace.py", line 58, in next
generator = self.generators[self.generator_counter % len(self.generators) ]
ZeroDivisionError: integer division or modulo by zero
Done.

I had it working before but not sure what has changed.

@chervonij
Copy link
Owner

chervonij commented May 19, 2019

@somilhyperanna

There were no changes.
Just tested and everything works fine.
Check your workspace data.

@somilhyperanna
Copy link
Author

Could be. Is there any sample workspace I can use.

The workspace structure I used before had
Archive: workspace_test.zip
creating: workspace/
creating: workspace/data_dst/
inflating: workspace/data_dst.mp4
creating: workspace/data_dst/aligned/
creating: workspace/data_src/
inflating: workspace/data_src.mp4
creating: workspace/data_src/aligned/
creating: workspace/model/

@somilhyperanna
Copy link
Author

I found the issue in my workspace. All good.

@chervonij
Copy link
Owner

good, issue closed.

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