Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ classifiers = [
]
dependencies = [
"requests>=2.33.0,<3",
"huggingface_hub==0.23.1",
"python-dotenv==1.1.0",
"pyroclient @ git+https://github.com/pyronear/pyro-api.git@main#subdirectory=client",
"pyro_camera_api_client",
Expand Down
1 change: 1 addition & 0 deletions pyro-predictor/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies = [
"tqdm==4.67.1",
"onnxruntime==1.22.1",
"ncnn==1.0.20240410",
"huggingface_hub>=1.30.0",
]

[project.urls]
Expand Down
2 changes: 2 additions & 0 deletions pyro-predictor/pyro_predictor/vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def __init__(
self.verbose = verbose
if not verbose:
logger.setLevel(logging.WARNING)
# hf_hub 1.x logs its HTTP requests through httpx at INFO
logging.getLogger("httpx").setLevel(logging.WARNING)

if model_path:
if not pathlib.Path(model_path).is_file():
Expand Down
31 changes: 25 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# This file was autogenerated by uv via the following command:
# uv export --no-hashes --no-emit-project --no-default-groups --no-dev --no-emit-package pyro_predictor --no-emit-package pyro_camera_api_client --format requirements-txt -o requirements-all.txt
anyio==4.14.2
# via httpx
certifi==2026.2.25
# via requests
# via
# httpcore
# httpx
# requests
charset-normalizer==3.4.7
# via requests
click==8.5.0
# via huggingface-hub
colorama==0.4.6 ; sys_platform == 'win32'
# via tqdm
coloredlogs==15.0.1
Expand All @@ -14,12 +21,23 @@ flatbuffers==25.12.19
# via onnxruntime
fsspec==2026.3.0
# via huggingface-hub
huggingface-hub==0.23.1
# via pyroengine
h11==0.16.0
# via httpcore
hf-xet==1.6.0 ; platform_machine == 'AMD64' or platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'arm64' or platform_machine == 'x86_64'
# via huggingface-hub
httpcore==1.0.9
# via httpx
httpx==0.28.1
# via huggingface-hub
huggingface-hub==1.30.0
# via pyro-predictor
humanfriendly==10.0
# via coloredlogs
idna==3.11
# via requests
# via
# anyio
# httpx
# requests
mpmath==1.3.0
# via sympy
ncnn==1.0.20240410
Expand Down Expand Up @@ -59,7 +77,6 @@ pyyaml==6.0.3
# via huggingface-hub
requests==2.34.2
# via
# huggingface-hub
# ncnn
# pyro-camera-api-client
# pyroclient
Expand All @@ -72,6 +89,8 @@ tqdm==4.67.1
# ncnn
# pyro-predictor
typing-extensions==4.15.0
# via huggingface-hub
# via
# anyio
# huggingface-hub
urllib3==2.6.3
# via requests
2 changes: 1 addition & 1 deletion tests/test_predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ def test_classifier_verbose_false_no_logs(tmpdir_factory, caplog):
folder = str(tmpdir_factory.mktemp("cls_cache"))
with caplog.at_level(logging.INFO, logger="pyro_predictor"):
Classifier(model_folder=folder, format="onnx", verbose=False)
assert caplog.records == []
assert [r for r in caplog.records if r.name.startswith("pyro_predictor")] == []
97 changes: 85 additions & 12 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading