file not found in HF "diffusion_pytorch_model.bin"
(myenv) C:\s_proj\IDM-VTON>python gradio_demo/app.py
Traceback (most recent call last):
File "C:\s_proj\IDM-VTON\gradio_demo\app.py", line 48, in
unet = UNet2DConditionModel.from_pretrained(
File "C:\Users\DELL\anaconda3\envs\myenv\lib\site-packages\huggingface_hub\utils_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "C:\Users\DELL\anaconda3\envs\myenv\lib\site-packages\diffusers\models\modeling_utils.py", line 777, in from_pretrained
model_file = _get_model_file(
File "C:\Users\DELL\anaconda3\envs\myenv\lib\site-packages\huggingface_hub\utils_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "C:\Users\DELL\anaconda3\envs\myenv\lib\site-packages\diffusers\utils\hub_utils.py", line 272, in _get_model_file
raise EnvironmentError(
OSError: Error no file named diffusion_pytorch_model.bin found in directory yisol/IDM-VTON.
Could anyone help on this issue please
I have the same issue as well.
EDIT: I think it is called "diffusion_pytorch_model.safetensors" now. We need to update the startup scripts somehow
I'm getting the same issue. Is there a fix for this?
same issue
10/site-packages/fsspec/asyn.py", line 56, in _runner
result[0] = await coro
File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 487, in cache
prediction = await Context.root_block.process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1928, in process_api
result = await self.call_function(
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1514, in call_function
prediction = await anyio.to_thread.run_sync(
File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2177, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 859, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 833, in wrapper
response = f(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/gradio/external.py", line 371, in query_huggingface_inference_endpoints
data = fn(*data) # type: ignore
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/inference/_client.py", line 1150, in image_to_image
response = self.post(json=payload, data=data, model=model, task="image-to-image")
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/inference/_client.py", line 273, in post
hf_raise_for_status(response)
File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_errors.py", line 358, in hf_raise_for_status
raise BadRequestError(message, response=response) from e
huggingface_hub.utils._errors.BadRequestError: (Request ID: cJgKaZs5yT1uZXmIEomeM)
Bad request:
Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory /data/models--yisol--IDM-VTON/snapshots/585a32e74aee241cbc0d0cc3ab21392ca58c916a/text_encoder_2.