Skip to content

There was a problem when reproducing it on the Windows system. #136

Description

@333zzzsss

(unique3d-py311) E:\Unique3D>python app/gradio_local.py --port 7860
Warning! extra parameter in cli is not verified, may cause erros.
Loading pipeline components...: 100%|████████████████████████████████████████████████████| 5/5 [00:00<00:00, 49.28it/s]
You have disabled the safety checker for <class 'custum_3d_diffusion.custum_pipeline.unifield_pipeline_img2mvimg.StableDiffusionImage2MVCustomPipeline'> by passing safety_checker=None. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at huggingface/diffusers#254 .
Warning! extra parameter in cli is not verified, may cause erros.
D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\huggingface_hub\file_download.py:1142: FutureWarning: resume_download is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use force_download=True.
warnings.warn(
D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\torch_utils.py:831: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly. To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
return self.fget.get(instance, owner)()
Loading pipeline components...: 100%|██████████████████████████████████████████████████| 5/5 [00:00<00:00, 1537.50it/s]
You have disabled the safety checker for <class 'custum_3d_diffusion.custum_pipeline.unifield_pipeline_img2img.StableDiffusionImageCustomPipeline'> by passing safety_checker=None. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at huggingface/diffusers#254 .
D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\torch\utils\cpp_extension.py:28: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
from pkg_resources import packaging # type: ignore[attr-defined]
D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\setuptools_distutils_msvccompiler.py:12: UserWarning: _get_vc_env is private; find an alternative (pypa/distutils#340)
warnings.warn(
D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\huggingface_hub\file_download.py:1142: FutureWarning: resume_download is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use force_download=True.
warnings.warn(
Loading pipeline components...: 100%|████████████████████████████████████████████████████| 6/6 [00:03<00:00, 1.87it/s]
Pipelines loaded with dtype=torch.float16 cannot run with cpu device. It is not recommended to move them to cpu as running them will fail. Please make sure to use an accelerator to run the pipeline in inference, due to the lack of support forfloat16 operations on this device in PyTorch. Please, remove the torch_dtype=torch.float16 argument, or use another device for inference.
Pipelines loaded with dtype=torch.float16 cannot run with cpu device. It is not recommended to move them to cpu as running them will fail. Please make sure to use an accelerator to run the pipeline in inference, due to the lack of support forfloat16 operations on this device in PyTorch. Please, remove the torch_dtype=torch.float16 argument, or use another device for inference.
Pipelines loaded with dtype=torch.float16 cannot run with cpu device. It is not recommended to move them to cpu as running them will fail. Please make sure to use an accelerator to run the pipeline in inference, due to the lack of support forfloat16 operations on this device in PyTorch. Please, remove the torch_dtype=torch.float16 argument, or use another device for inference.
Loading pipeline components...: 100%|██████████████████████████████████████████████████| 6/6 [00:00<00:00, 3551.49it/s]
Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch().
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\fastapi\applications.py", line 1133, in call
await super().call(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette\applications.py", line 113, in call
await self.middleware_stack(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette\middleware\errors.py", line 186, in call
raise exc
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette\middleware\errors.py", line 164, in call
await self.app(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\gradio\route_utils.py", line 714, in call
await self.app(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette\routing.py", line 716, in call
await self.middleware_stack(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette\routing.py", line 736, in app
await route.handle(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette\routing.py", line 290, in handle
await self.app(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\fastapi\routing.py", line 123, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\fastapi\routing.py", line 109, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\fastapi\routing.py", line 389, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\fastapi\routing.py", line 290, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette\concurrency.py", line 38, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\anyio_backends_asyncio.py", line 2485, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\anyio_backends_asyncio.py", line 976, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\gradio\routes.py", line 427, in api_info
app.api_info = app.get_blocks().get_api_info()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\gradio\blocks.py", line 2737, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\gradio_client\utils.py", line 893, in json_schema_to_python_type
type
= _json_schema_to_python_type(schema, schema.get("$defs"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\gradio_client\utils.py", line 947, in _json_schema_to_python_type
des = [
^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\gradio_client\utils.py", line 948, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\gradio_client\utils.py", line 955, in _json_schema_to_python_type
f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\gradio_client\utils.py", line 901, in json_schema_to_python_type
type
= get_type(schema)
^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\gradio_client\utils.py", line 863, in get_type
if "const" in schema:
^^^^^^^^^^^^^^^^^
TypeError: argument of type 'bool' is not iterable
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\fastapi\applications.py", line 1133, in call
await super().call(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette\applications.py", line 113, in call
await self.middleware_stack(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette\middleware\errors.py", line 186, in call
raise exc
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette\middleware\errors.py", line 164, in call
await self.app(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\gradio\route_utils.py", line 714, in call
await self.app(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette\routing.py", line 716, in call
await self.middleware_stack(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette\routing.py", line 736, in app
await route.handle(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette\routing.py", line 290, in handle
await self.app(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\fastapi\routing.py", line 123, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\fastapi\routing.py", line 109, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\fastapi\routing.py", line 389, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\fastapi\routing.py", line 290, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\starlette\concurrency.py", line 38, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\anyio_backends_asyncio.py", line 2485, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\anyio_backends_asyncio.py", line 976, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\gradio\routes.py", line 427, in api_info
app.api_info = app.get_blocks().get_api_info()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\gradio\blocks.py", line 2737, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\gradio_client\utils.py", line 893, in json_schema_to_python_type
type
= _json_schema_to_python_type(schema, schema.get("$defs"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\gradio_client\utils.py", line 947, in _json_schema_to_python_type
des = [
^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\gradio_client\utils.py", line 948, in
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\gradio_client\utils.py", line 955, in _json_schema_to_python_type
f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\gradio_client\utils.py", line 901, in json_schema_to_python_type
type
= get_type(schema)
^^^^^^^^^^^^^^^^
File "D:\Users\hipeson\Anaconda3\envs\unique3d-py311\Lib\site-packages\gradio_client\utils.py", line 863, in get_type
if "const" in schema:
^^^^^^^^^^^^^^^^^
TypeError: argument of type 'bool' is not iterable
Keyboard interruption in main thread... closing server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions