Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There are still a bunch of error on my side. - Benjamin #66

Open
lipere123 opened this issue Jan 31, 2025 · 2 comments
Open

There are still a bunch of error on my side. - Benjamin #66

lipere123 opened this issue Jan 31, 2025 · 2 comments

Comments

@lipere123
Copy link

/usr/local/hunyuan3Dv2/bin/python3 /usr/local/hunyuan3Dv2-backend/api_server.py --host 0.0.0.0 --port 8085
/usr/local/hunyuan3Dv2/lib/python3.11/site-packages/numba/np/ufunc/parallel.py:371: NumbaWarning: The TBB threading layer requires TBB version 2021 update 6 or later i.e., TBB_INTERFACE_VERSION >= 12060. Found TBB_INTERFACE_VERSION = 12050. The TBB threading layer is disabled.
warnings.warn(problem)
2025-01-31 04:27:46 | INFO | controller | args: Namespace(host='0.0.0.0', port='8085', model_path='tencent/Hunyuan3D-2', device='cuda', limit_model_concurrency=5)
2025-01-31 04:27:46 | INFO | controller | Loading the model tencent/Hunyuan3D-2 on worker 4bbcf9 ...
Fetching 45 files: 0%| | 0/45 [00:00<?, ?it/s]
Fetching 45 files: 100%|███████████████████████████████████████████████████████████████████████████████████████| 45/45 [00:00<00:00, 16138.84it/s]
2025-01-31 04:27:47 | ERROR | stderr |
2025-01-31 04:27:47 | INFO | hy3dgen.shapegen.pipelines | Loading model from /root/.cache/huggingface/hub/models--tencent--Hunyuan3D-2/snapshots/3567d99a6cce5b0034b8a48cc4abb7e97bf3176a/hunyuan3d-dit-v2-0/model.ckpt
Loading pipeline components...: 0%| | 0/7 [00:00<?, ?it/s]
Loading pipeline components...: 14%|███████████▎ | 1/7 [00:00<00:05, 1.01it/s]
Loading pipeline components...: 29%|██████████████████████▌ | 2/7 [00:01<00:03, 1.56it/s]
Loading pipeline components...: 43%|█████████████████████████████████▊ | 3/7 [00:02<00:03, 1.26it/s]
Loading pipeline components...: 71%|████████████████████████████████████████████████████████▍ | 5/7 [00:02<00:00, 2.60it/s]
2025-01-31 04:28:12 | ERROR | stderr |
Loading checkpoint shards: 0%| | 0/2 [00:00<?, ?it/s]
2025-01-31 04:28:13 | ERROR | stderr |
Loading checkpoint shards: 50%|██████████████████████████████████████████ | 1/2 [00:00<00:00, 1.52it/s]
2025-01-31 04:28:13 | ERROR | stderr |
Loading checkpoint shards: 100%|████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 2.24it/s]
Loading checkpoint shards: 100%|████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 2.09it/s]
2025-01-31 04:28:13 | ERROR | stderr |
Loading pipeline components...: 86%|███████████████████████████████████████████████████████████████████▋ | 6/7 [00:03<00:00, 1.79it/s]
Loading pipeline components...: 100%|███████████████████████████████████████████████████████████████████████████████| 7/7 [00:03<00:00, 2.00it/s]
2025-01-31 04:28:13 | ERROR | stderr |
You have disabled the safety checker for <class 'diffusers.pipelines.pag.pipeline_pag_hunyuandit.HunyuanDiTPAGPipeline'> 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 .
Fetching 45 files: 0%| | 0/45 [00:00<?, ?it/s]
Fetching 45 files: 100%|███████████████████████████████████████████████████████████████████████████████████████| 45/45 [00:00<00:00, 11890.11it/s]
2025-01-31 04:28:15 | ERROR | stderr |
Loading pipeline components...: 0%| | 0/6 [00:00<?, ?it/s]
Loading pipeline components...: 17%|█████████████▏ | 1/6 [00:00<00:01, 4.73it/s]
Loading pipeline components...: 100%|███████████████████████████████████████████████████████████████████████████████| 6/6 [00:00<00:00, 7.36it/s]
Loading pipeline components...: 100%|███████████████████████████████████████████████████████████████████████████████| 6/6 [00:00<00:00, 7.16it/s]
2025-01-31 04:28:15 | ERROR | stderr |
Loading pipeline components...: 0%| | 0/6 [00:00<?, ?it/s]
Loading pipeline components...: 17%|█████████████▏ | 1/6 [00:00<00:02, 1.86it/s]
Loading pipeline components...: 100%|███████████████████████████████████████████████████████████████████████████████| 6/6 [00:07<00:00, 1.28s/it]
Loading pipeline components...: 100%|███████████████████████████████████████████████████████████████████████████████| 6/6 [00:07<00:00, 1.24s/it]
2025-01-31 04:28:24 | ERROR | stderr |
2025-01-31 04:28:25 | ERROR | stderr | INFO: Started server process [93946]
2025-01-31 04:28:25 | ERROR | stderr | INFO: Waiting for application startup.
2025-01-31 04:28:25 | ERROR | stderr | INFO: Application startup complete.
2025-01-31 04:28:25 | ERROR | stderr | --- Logging error ---
2025-01-31 04:28:25 | ERROR | stderr | Traceback (most recent call last):
2025-01-31 04:28:25 | ERROR | stderr | File "/usr/lib/python3.11/logging/init.py", line 1110, in emit
2025-01-31 04:28:25 | ERROR | stderr | msg = self.format(record)
2025-01-31 04:28:25 | ERROR | stderr | ^^^^^^^^^^^^^^^^^^^
2025-01-31 04:28:25 | ERROR | stderr | File "/usr/lib/python3.11/logging/init.py", line 953, in format
2025-01-31 04:28:25 | ERROR | stderr | return fmt.format(record)
2025-01-31 04:28:25 | ERROR | stderr | ^^^^^^^^^^^^^^^^^^
2025-01-31 04:28:25 | ERROR | stderr | File "/usr/lib/python3.11/logging/init.py", line 687, in format
2025-01-31 04:28:25 | ERROR | stderr | record.message = record.getMessage()
2025-01-31 04:28:25 | ERROR | stderr | ^^^^^^^^^^^^^^^^^^^
2025-01-31 04:28:25 | ERROR | stderr | File "/usr/lib/python3.11/logging/init.py", line 377, in getMessage
2025-01-31 04:28:25 | ERROR | stderr | msg = msg % self.args
2025-01-31 04:28:25 | ERROR | stderr | ~~~~^~~~~~~~~~~
2025-01-31 04:28:25 | ERROR | stderr | TypeError: %d format: a real number is required, not str
2025-01-31 04:28:25 | ERROR | stderr | Call stack:
2025-01-31 04:28:25 | ERROR | stderr | File "/usr/local/hunyuan3Dv2-backend/api_server.py", line 271, in
2025-01-31 04:28:25 | ERROR | stderr | uvicorn.run(app, host=args.host, port=args.port, log_level="info")
2025-01-31 04:28:25 | ERROR | stderr | File "/usr/local/hunyuan3Dv2/lib/python3.11/site-packages/uvicorn/main.py", line 579, in run
2025-01-31 04:28:25 | ERROR | stderr | server.run()
2025-01-31 04:28:25 | ERROR | stderr | File "/usr/local/hunyuan3Dv2/lib/python3.11/site-packages/uvicorn/server.py", line 66, in run
2025-01-31 04:28:25 | ERROR | stderr | return asyncio.run(self.serve(sockets=sockets))
2025-01-31 04:28:25 | ERROR | stderr | File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
2025-01-31 04:28:25 | ERROR | stderr | return runner.run(main)
2025-01-31 04:28:25 | ERROR | stderr | File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
2025-01-31 04:28:25 | ERROR | stderr | return self._loop.run_until_complete(task)
2025-01-31 04:28:25 | ERROR | stderr | File "/usr/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete
2025-01-31 04:28:25 | ERROR | stderr | self.run_forever()
2025-01-31 04:28:25 | ERROR | stderr | File "/usr/lib/python3.11/asyncio/base_events.py", line 608, in run_forever
2025-01-31 04:28:25 | ERROR | stderr | self._run_once()
2025-01-31 04:28:25 | ERROR | stderr | File "/usr/lib/python3.11/asyncio/base_events.py", line 1936, in _run_once
2025-01-31 04:28:25 | ERROR | stderr | handle._run()
2025-01-31 04:28:25 | ERROR | stderr | File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run
2025-01-31 04:28:25 | ERROR | stderr | self._context.run(self._callback, *self._args)
2025-01-31 04:28:25 | ERROR | stderr | File "/usr/local/hunyuan3Dv2/lib/python3.11/site-packages/uvicorn/server.py", line 70, in serve
2025-01-31 04:28:25 | ERROR | stderr | await self._serve(sockets)
2025-01-31 04:28:25 | ERROR | stderr | File "/usr/local/hunyuan3Dv2/lib/python3.11/site-packages/uvicorn/server.py", line 85, in _serve
2025-01-31 04:28:25 | ERROR | stderr | await self.startup(sockets=sockets)
2025-01-31 04:28:25 | ERROR | stderr | File "/usr/local/hunyuan3Dv2/lib/python3.11/site-packages/uvicorn/server.py", line 180, in startup
2025-01-31 04:28:25 | ERROR | stderr | self._log_started_message(listeners)
2025-01-31 04:28:25 | ERROR | stderr | File "/usr/local/hunyuan3Dv2/lib/python3.11/site-packages/uvicorn/server.py", line 215, in _log_started_message
2025-01-31 04:28:25 | ERROR | stderr | logger.info(
2025-01-31 04:28:25 | ERROR | stderr | Message: 'Uvicorn running on %s://%s:%d (Press CTRL+C to quit)'
2025-01-31 04:28:25 | ERROR | stderr | Arguments: ('http', '0.0.0.0', '8085')
^C2025-01-31 04:28:27 | ERROR | stderr | INFO: Shutting down
2025-01-31 04:28:27 | ERROR | stderr | INFO: Waiting for application shutdown.
2025-01-31 04:28:27 | ERROR | stderr | INFO: Application shutdown complete.
2025-01-31 04:28:27 | ERROR | stderr | INFO: Finished server process [93946]

@dwforbes
Copy link

dwforbes commented Jan 31, 2025

In api_server.py change the line

parser.add_argument("--port", type=str, default="8081")

to

parser.add_argument("--port",type=int, default=8081)

Some dependency chains just cast the string to an int and move on, but given this project doesn't explicitly denote versions people can end up with a hodgepod such that things like this are seen.

@lipere123
Copy link
Author

Yep, I seen that and corrected it.
You also should replace the demo client script from bash to python, I have an arguments overflow, still diid not have time to search it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants