ITADN

Importing get_model is super slow

#1840Openholma91 创建于 2025-12-20
bug
H
holma91commented
### Search before asking - [x] I have searched the Inference [issues](https://github.com/roboflow/inference/issues) and found no similar bug report. ### Bug Running `uv run python -c "import time; start = time.time(); from inference import get_model; print(f'Import took: {time.time() - start:.2f}s')"` takes 120-150seconds on my machine. I presume this is because of some heavy work being done at import time. Is it possible to disable this? ### Environment Python 3.11 and inference 0.63.1. Happens for me on both MacOS and Linux ### Minimal Reproducible Example ``` uv run python -c "import time; start = time.time(); from inference import get_model; print(f'Import took: {time.time() - start:.2f}s')" ``` ### Additional _No response_ ### Are you willing to submit a PR? - [ ] Yes I'd like to help by submitting a PR!
0 条评论