OpenGVLab / DragGAN

Unofficial Implementation of DragGAN - "Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold" (DragGAN 全功能实现,在线Demo,本地部署试用,代码、模型已全部开源,支持Windows, macOS, Linux)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to using custom picture?

hnuzhoulin opened this issue · comments

when I upload a image,errors:

Registering hook for: b256
Traceback (most recent call last):
  File "/home/zhoulin/miniconda3/envs/draggan/lib/python3.7/site-packages/gradio/routes.py", line 444, in run_predict
    event_data=event_data,
  File "/home/zhoulin/miniconda3/envs/draggan/lib/python3.7/site-packages/gradio/blocks.py", line 1347, in process_api
    fn_index, inputs, iterator, request, event_id, event_data
  File "/home/zhoulin/miniconda3/envs/draggan/lib/python3.7/site-packages/gradio/blocks.py", line 1075, in call_function
    fn, *processed_input, limiter=self.limiter
  File "/home/zhoulin/miniconda3/envs/draggan/lib/python3.7/site-packages/anyio/to_thread.py", line 34, in run_sync
    func, *args, cancellable=cancellable, limiter=limiter
  File "/home/zhoulin/miniconda3/envs/draggan/lib/python3.7/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "/home/zhoulin/miniconda3/envs/draggan/lib/python3.7/site-packages/anyio/_backends/_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "/home/zhoulin/OpenGVLab-DragGAN/draggan/web.py", line 184, in on_image_change
    result = inverse_image(
NameError: name 'inverse_image' is not defined

the same with #100 closed