DragGAN icon indicating copy to clipboard operation
DragGAN copied to clipboard

Self-uploaded image error

Open RickySkywalker opened this issue 2 years ago • 0 comments

When I try to upload my own image in the colab version of Draggan, the following error happens

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/gradio/routes.py", line 437, in run_predict output = await app.get_blocks().process_api( File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1346, in process_api result = await self.call_function( File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1074, in call_function prediction = await anyio.to_thread.run_sync( File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 807, in run result = context.run(func, *args) File "/content/./DragGAN/gradio_app.py", line 183, in on_image_change result = inverse_image( NameError: name 'inverse_image' is not defined

RickySkywalker avatar Jun 28 '23 20:06 RickySkywalker