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

Examples don`t work correctly #2

Open
Kupchanski opened this issue Jul 24, 2020 · 5 comments
Open

Examples don`t work correctly #2

Kupchanski opened this issue Jul 24, 2020 · 5 comments

Comments

@Kupchanski
Copy link

I tried to test inversion.py example, but got this mistake.
image

It seems like it just need to be corrected a little.
TY for pytorch realization btw! Love it

@ShenYujun
Copy link
Contributor

Please try

cd idinvert_pytorch
python invert.py

We use relative path to find the images.

@Kupchanski
Copy link
Author

Please try

cd idinvert_pytorch
python invert.py

We use relative path to find the images.

Thanks, It works now!

Another question. If I need this alg for 1024 res, I need to train encoder from scratch?

@ShenYujun
Copy link
Contributor

Yes.

@ak9250
Copy link

ak9250 commented Aug 4, 2020

@ShenYujun i am getting same issue when doing diffusion in colab
Context ID: 67% 2/3 [00:12<00:06, 6.47s/it]Traceback (most recent call last):
File "diffuse.py", line 146, in
main()
File "diffuse.py", line 131, in main
num_viz=args.num_results)
File "/content/idinvert_pytorch/utils/inverter.py", line 313, in easy_diffuse
self.preprocess(context),
File "/content/idinvert_pytorch/utils/inverter.py", line 105, in preprocess
raise ValueError(f'Input image should be with type numpy.ndarray!')
ValueError: Input image should be with type numpy.ndarray!

@ShenYujun
Copy link
Contributor

How do you load the images and how do you feed them to the function easy_diffuse()?

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

3 participants