0xbitches / sd-webui-lcm

Latent Consistency Model for AUTOMATIC1111 Stable Diffusion WebUI
MIT License
614 stars 43 forks source link

img2img时报错TypeError: 'float' object cannot be interpreted as an integer #47

Open us-Mike opened 8 months ago

us-Mike commented 8 months ago

image

Traceback (most recent call last): File "/home/yaohs/miniconda3/envs/sd_lcm/lib/python3.10/site-packages/gradio/routes.py", line 488, in run_predict output = await app.get_blocks().process_api( File "/home/yaohs/miniconda3/envs/sd_lcm/lib/python3.10/site-packages/gradio/blocks.py", line 1431, in process_api result = await self.call_function( File "/home/yaohs/miniconda3/envs/sd_lcm/lib/python3.10/site-packages/gradio/blocks.py", line 1103, in call_function prediction = await anyio.to_thread.run_sync( File "/home/yaohs/miniconda3/envs/sd_lcm/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "/home/yaohs/miniconda3/envs/sd_lcm/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "/home/yaohs/miniconda3/envs/sd_lcm/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run result = context.run(func, args) File "/home/yaohs/miniconda3/envs/sd_lcm/lib/python3.10/site-packages/gradio/utils.py", line 707, in wrapper response = f(args, kwargs) File "/home/yaohs/miniconda3/envs/sd_lcm/lib/python3.10/site-packages/gradio/utils.py", line 707, in wrapper response = f(*args, *kwargs) File "/home/yaohs/Work/stable-diffusion-webui/extensions/sd-webui-lcm/scripts/main.py", line 172, in generate_i2i result = pipe( File "/home/yaohs/miniconda3/envs/sd_lcm/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context return func(args, kwargs) File "/home/yaohs/Work/stable-diffusion-webui/extensions/sd-webui-lcm/lcm/lcm_i2i_pipeline.py", line 305, in call self.scheduler.set_timesteps(strength, num_inference_steps, original_inference_steps) File "/home/yaohs/miniconda3/envs/sd_lcm/lib/python3.10/site-packages/diffusers/schedulers/scheduling_lcm.py", line 458, in set_timesteps inference_indices = np.linspace(0, len(lcm_origin_timesteps), num=num_inference_steps, endpoint=False) File "<__array_function__ internals>", line 180, in linspace File "/home/yaohs/miniconda3/envs/sd_lcm/lib/python3.10/site-packages/numpy/core/function_base.py", line 120, in linspace num = operator.index(num) TypeError: 'float' object cannot be interpreted as an integer

sharkDDD commented 7 months ago

The same error

libersoft-org commented 7 months ago

Having the same issue :(

yyhhenry commented 7 months ago

The same error occurs when I run the img2img or vid2vid.

anhdh-4 commented 7 months ago

some issue :(

Spo-oky commented 7 months ago

same error in img2img

DimitriGeier commented 7 months ago

same error

Maverobot commented 6 months ago

same error

PowZone commented 6 months ago

same error

ssbugman commented 6 months ago

This repo is non working garbage. Author still didnt nothing.