Open Cloudaig opened 9 months ago
I ran into the same error, have you been able to find a away around it yet?
I also had such a problem. The accelerate update helped me:
pip install --upgrade accelerate
Can someone help me by telling me how to run API i got 200 response but i dont know how to get images import requests
api_url = "https://new-rings-yawn.loca.lt"
prompt_text = "blue elephant"
params = { 'prompt': prompt_text
}
response = requests.get(api_url, params=params)
if response.status_code == 200:
print("Response Content:")
print(response.text)
else:
print(f"Error: {response.status_code} - {response.text}")
C:\Users\HP\Desktop>python -u "c:\Users\HP\Desktop\api.py" Response Content: {"Hello":"World"}
Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script exec(code, module.dict) File "/usr/local/lib/python3.10/dist-packages/diffuzers/Home.py", line 7, in
from diffuzers.x2image import X2Image
File "/usr/local/lib/python3.10/dist-packages/diffuzers/x2image.py", line 14, in
from diffusers import (
File "", line 1075, in _handle_fromlist
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 675, in getattr
value = getattr(module, name)
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 675, in getattr
value = getattr(module, name)
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 674, in getattr
module = self._get_module(self._class_to_module[name])
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 686, in _get_module
raise RuntimeError(
RuntimeError: Failed to import diffusers.pipelines.alt_diffusion.pipeline_alt_diffusion_img2img because of the following error (look up to see its traceback):
cannot import name 'CpuOffload' from 'accelerate.hooks' (/usr/local/lib/python3.10/dist-packages/accelerate/hooks.py)