encoder4editing
encoder4editing copied to clipboard
Inference with sample size >1 fails
This would appear to be a repeat of #60, however, deleting the output directly (or clearing it) does not fix the problem. If option --n_sample is set to any number higher than 1, the following error arises:
Traceback (most recent call last):
File "scripts/inference.py", line 133, in
Deleting the output directory or ensuring there is no pre-existing latents.pt
file does not fix the problem. Do you have any idea what the issue could be?
Hi @VisionaryMind, Sorry for the long response time, haven't had the time to maintain this repo for a while.
In case this is still relevant, I wonder if the images directory you point to contains only a single image, in which case there is only one latent code (index 0) and when you specify n_samples > 1 it fails to find the second latent code (index 1) since there is no such code.
I commited a change relevant to the above, let me know if the problem still persist.
Best, Omer