camenduru / latent-consistency-model-colab

183 stars 17 forks source link

AttributeError: 'NoneType' object has no attribute 'resize' #8

Open andysingal opened 11 months ago

andysingal commented 11 months ago

NotebooK: https://colab.research.google.com/github/camenduru/latent-consistency-model-colab/blob/main/lcm_cyberrealistic_controlnet_canny_ip_adapter_full_face_paint_colab.ipynb

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/gradio/routes.py", line 534, in predict
    output = await route_utils.call_process_api(
  File "/usr/local/lib/python3.10/dist-packages/gradio/route_utils.py", line 226, in call_process_api
    output = await app.get_blocks().process_api(
  File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1550, in process_api
    result = await self.call_function(
  File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1185, 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 "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 661, in wrapper
    response = f(*args, **kwargs)
  File "/tmp/ipykernel_279/451638259.py", line 37, in generate
    face_image.resize((256, 256))
AttributeError: 'NoneType' object has no attribute 'resize'

Image i used:

Screenshot 2023-11-20 at 10 10 24 AM Screenshot 2023-11-20 at 10 06 49 AM Screenshot 2023-11-20 at 10 07 54 AM Screenshot 2023-11-20 at 10 36 38 AM