deepghs / imgutils

A convenient and user-friendly anime-style image data processing library that integrates various advanced anime-style image processing models
https://dghs-imgutils.deepghs.org/
MIT License
218 stars 16 forks source link

dev(narugo): add quick gradio demo for classifiers/yolos #108

Closed narugo1992 closed 2 months ago

narugo1992 commented 2 months ago
from imgutils.generic import YOLOModel, ClassifyModel

if __name__ == "__main__":
    # model = YOLOModel('deepghs/anime_head_detection')
    model = ClassifyModel('deepghs/anime_classification')
    model.launch_demo(server_port=7891)
codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 23.07692% with 70 lines in your changes missing coverage. Please review.

Project coverage is 96.79%. Comparing base (7508461) to head (dbdba35). Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
imgutils/generic/yolo.py 23.07% 40 Missing :warning:
imgutils/generic/classify.py 23.07% 30 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #108 +/- ## ========================================== - Coverage 98.88% 96.79% -2.09% ========================================== Files 101 101 Lines 3217 3308 +91 ========================================== + Hits 3181 3202 +21 - Misses 36 106 +70 ``` | [Flag](https://app.codecov.io/gh/deepghs/imgutils/pull/108/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepghs) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/deepghs/imgutils/pull/108/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepghs) | `96.79% <23.07%> (-2.09%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepghs#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.