Skip to main content

DeepDanbooru

动漫图片分类模型

安装

pip install deepdanbooru-onnx

使用

from deepdanbooru_onnx import DeepDanbooru, process_image
from PIL import Image
import numpy as np
danbooru = DeepDanbooru()
#usage 1
print(danbooru('test.jpg'))
img = Image.open('test.jpg')
print(danbooru(img))
#usage 2
img = process_image(img) # iamge to ndarray
print(danbooru(img))
#usage 3
print(list(danbooru(['test1.jpg','test2.jpg'])))

TODO

  • 提供轻量化模型
  • 结果缓存
  • 提供WEB接口
  • 模型量化
  • 精度更高的模型(slow)

Metadata

Release files for deepdanbooru-onnx 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deepdanbooru-onnx 0.0.8
File Size Uploaded Provenance Actions
deepdanbooru_onnx-0.0.8.tar.gz 4.5 kB Without provenance Details for deepdanbooru_onnx-0.0.8.tar.gz

Release files / deepdanbooru_onnx-0.0.8.tar.gz

Download URL deepdanbooru_onnx-0.0.8.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b167864eed7bd2e72370dcfb8d2b9015c7ad99aab7dfeaa8173414327682f5ef
BLAKE2b-256 checksum
How to use checksums
0c461a85fb9d7f2e34fb2d340908bed74ef8da1c6aef7bfbfb221e703264124e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.5

Security for deepdanbooru-onnx 0.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page