Skip to content

Commit

Permalink
🎨 refactor(image_metadata): enhance metadata print statements
Browse files Browse the repository at this point in the history
- Improve readability by adding formatted strings
- Include request method and used model in output
- Add verification of NovelAI and latent status
  • Loading branch information
sudoskys committed Sep 27, 2024
1 parent c9383d8 commit 0d93790
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions playground/image_metadata/read_nai_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
raise LookupError("Cant find a MetaData")

print(meta.Title)
print(meta.Description)
print(meta.Comment)
print(ImageVerifier().verify(image=image))
print(f"Description: {meta.Description}")
print(f"Comment: {meta.Comment}")
print(f"Request Method: {meta.Comment.request_type}")
print(f"Used image model: {meta.used_model}")
# Verify if the image is from NovelAI
is_novelai, have_latent = ImageVerifier().verify(image=image)
print(f"Is NovelAI: {is_novelai}")
print(f"Have Latent: {have_latent}")

0 comments on commit 0d93790

Please sign in to comment.