fialed to run locally via docker

#11
by AliAhmed20 - opened

I use this command to run locally
"docker run -it -p 7860:7860 --platform=linux/amd64 --gpus all
registry.hf.space/oaoa-invsr:latest python app.py"

GPU: rtx 5070 ti
OS: windows 11

but got this error

2025-04-13 10:37:42 To create a public link, set share=True in launch().
2025-04-13 10:38:02 Caching examples at: '/home/user/app/.gradio/cached_examples/18'
2025-04-13 10:38:02 Setting timesteps for inference: [200, 100, 50]
2025-04-13 10:38:02 Traceback (most recent call last):
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 992, in predict
2025-04-13 10:38:02 output = await route_utils.call_process_api(
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 323, in call_process_api
2025-04-13 10:38:02 output = await app.get_blocks().process_api(
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2043, in process_api
2025-04-13 10:38:02 result = await self.call_function(
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1590, in call_function
2025-04-13 10:38:02 prediction = await anyio.to_thread.run_sync( # type: ignore
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
2025-04-13 10:38:02 return await get_async_backend().run_sync_in_worker_thread(
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2505, in run_sync_in_worker_thread
2025-04-13 10:38:02 return await future
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1005, in run
2025-04-13 10:38:02 result = context.run(func, *args)
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 865, in wrapper
2025-04-13 10:38:02 response = f(*args, **kwargs)
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 352, in load_example_with_output
2025-04-13 10:38:02 ) + self.load_from_cache(example_id)
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 546, in load_from_cache
2025-04-13 10:38:02 client_utils.synchronize_async(self.cache, example_id)
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 879, in synchronize_async
2025-04-13 10:38:02 return fsspec.asyn.sync(fsspec.asyn.get_loop(), func, *args, **kwargs) # type: ignore
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/fsspec/asyn.py", line 103, in sync
2025-04-13 10:38:02 raise return_result
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/fsspec/asyn.py", line 56, in _runner
2025-04-13 10:38:02 result[0] = await coro
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 523, in cache
2025-04-13 10:38:02 prediction = await self.root_block.process_api(
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2043, in process_api
2025-04-13 10:38:02 result = await self.call_function(
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1590, in call_function
2025-04-13 10:38:02 prediction = await anyio.to_thread.run_sync( # type: ignore
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
2025-04-13 10:38:02 return await get_async_backend().run_sync_in_worker_thread(
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2505, in run_sync_in_worker_thread
2025-04-13 10:38:02 return await future
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1005, in run
2025-04-13 10:38:02 result = context.run(func, *args)
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 865, in wrapper
2025-04-13 10:38:02 response = f(*args, **kwargs)
2025-04-13 10:38:02 File "/home/user/app/app.py", line 70, in predict
2025-04-13 10:38:02 sampler = InvSamplerSR(configs)
2025-04-13 10:38:02 File "/home/user/app/sampler_invsr.py", line 53, in init
2025-04-13 10:38:02 self.build_model()
2025-04-13 10:38:02 File "/home/user/app/sampler_invsr.py", line 70, in build_model
2025-04-13 10:38:02 base_pipe = util_common.get_obj_from_str(self.configs.sd_pipe.target).from_pretrained(**params)
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
2025-04-13 10:38:02 return fn(*args, **kwargs)
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/diffusers/pipelines/pipeline_utils.py", line 699, in from_pretrained
2025-04-13 10:38:02 cached_folder = cls.download(
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
2025-04-13 10:38:02 return fn(*args, **kwargs)
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/diffusers/pipelines/pipeline_utils.py", line 1308, in download
2025-04-13 10:38:02 config_dict = cls._dict_from_json_file(config_file)
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/site-packages/diffusers/configuration_utils.py", line 555, in _dict_from_json_file
2025-04-13 10:38:02 return json.loads(text)
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/json/init.py", line 346, in loads
2025-04-13 10:38:02 return _default_decoder.decode(s)
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode
2025-04-13 10:38:02 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
2025-04-13 10:38:02 File "/usr/local/lib/python3.10/json/decoder.py", line 355, in raw_decode
2025-04-13 10:38:02 raise JSONDecodeError("Expecting value", s, err.value) from None
2025-04-13 10:38:02 json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment