Runware / sdk-python

The Python Runware SDK is used to run image inference with the Runware API, powered by the RunWare inference platform.
Other
9 stars 4 forks source link

AttributeError: 'dict' object has no attribute 'task_uuid' #24

Open pasaranax opened 2 weeks ago

pasaranax commented 2 weeks ago

On requesting more than 1 image in a batch

  File ".../.venv/lib/python3.12/site-packages/runware/base.py", line 283, in imageInference
    raise e
  File ".../.venv/lib/python3.12/site-packages/runware/base.py", line 267, in imageInference
    return await asyncRetry(
           ^^^^^^^^^^^^^^^^^
  File ".../.venv/lib/python3.12/site-packages/runware/async_retry.py", line 50, in asyncRetry
    raise error
  File ".../.venv/lib/python3.12/site-packages/runware/async_retry.py", line 43, in asyncRetry
    return await apiCall()
           ^^^^^^^^^^^^^^^
  File ".../.venv/lib/python3.12/site-packages/runware/base.py", line 298, in _requestImages
    img for img in self._globalImages if img.task_uuid in task_uuids
                                         ^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'task_uuid'
pasaranax commented 2 weeks ago

update: reproduces on SD, works good on flux