-
Notifications
You must be signed in to change notification settings - Fork 491
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
custom photo: NameError: name 'inverse_image' is not defined #96
Comments
Same for me.
|
1.1.5 has a major update which makes old inverse_image incompatible. I am still working on the new one. If you want to try custom image now. Downgrade to 1.1.0 pip install draggan==1.1.0 |
Doesn't work with 1.1.0 either: line 183, in on_image_change |
Same with docker version, maybe this is missing: from .stylegan2.inversion import inverse_image ? |
Are you sure you are running via the following commands ?
|
Hm didn't restart my terminal, but now I get AttributeError: module 'torchvision.transforms' has no attribute 'Resize' when trying to load my image. |
See #39 (comment) |
Thanks! |
大佬,我draggan退回到1.1.0也还是报这个错唉,如果导入 |
Traceback (most recent call last):
File "C:\Users\xios.conda\envs\draggan\lib\site-packages\gradio\routes.py", line 406, in run_predict
event_data=event_data,
File "C:\Users\xios.conda\envs\draggan\lib\site-packages\gradio\blocks.py", line 1300, in process_api
fn_index, inputs, iterator, request, event_id, event_data
File "C:\Users\xios.conda\envs\draggan\lib\site-packages\gradio\blocks.py", line 1023, in call_function
fn, *processed_input, limiter=self.limiter
File "C:\Users\xios.conda\envs\draggan\lib\site-packages\anyio\to_thread.py", line 34, in run_sync
func, *args, cancellable=cancellable, limiter=limiter
File "C:\Users\xios.conda\envs\draggan\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "C:\Users\xios.conda\envs\draggan\lib\site-packages\anyio_backends_asyncio.py", line 807, in run
result = context.run(func, *args)
File "C:\Users\xios.conda\envs\draggan\lib\site-packages\draggan\web.py", line 183, in on_image_change
result = inverse_image(
NameError: name 'inverse_image' is not defined
The text was updated successfully, but these errors were encountered: