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

dev(narugo): add convert function from embeddings to understandable result of taggers #123

Merged
merged 5 commits into from
Nov 8, 2024

Conversation

narugo1992
Copy link
Contributor

@narugo1992 narugo1992 commented Nov 8, 2024

from pprint import pprint

from imgutils.tagging import get_wd14_tags, convert_wd14_emb_to_prediction
from test.testings import get_testfile

embedding = get_wd14_tags(get_testfile('nude_girl.png'), fmt='embedding')

rating, general, character = convert_wd14_emb_to_prediction(embedding)
pprint(rating)
print(general)
print(character)

@narugo1992 narugo1992 added the enhancement New feature or request label Nov 8, 2024
@narugo1992 narugo1992 self-assigned this Nov 8, 2024
Copy link

codecov bot commented Nov 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.86%. Comparing base (0627839) to head (555b541).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #123      +/-   ##
==========================================
+ Coverage   96.84%   96.86%   +0.01%     
==========================================
  Files         104      105       +1     
  Lines        3425     3441      +16     
==========================================
+ Hits         3317     3333      +16     
  Misses        108      108              
Flag Coverage Δ
unittests 96.86% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@narugo1992 narugo1992 merged commit c1bca12 into main Nov 8, 2024
20 checks passed
@narugo1992 narugo1992 deleted the dev/tconv branch November 8, 2024 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant