Downloads · 30 days
10
15% of all-time downloads
not-lain/29004
29004 is a image classification model from not-lain. Use it when you need a label for an image. It is set up for transformers.
you can read this blogpost to find out more 📖
Downloads · 30 days
10
15% of all-time downloads
All-time downloads
68
Public
Parameters
21.8K
88 KB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors88 KB · 93%
From the Hugging Face model README
you can read this blogpost to find out more 📖
you can the model via the command
from transformers import AutoModelForImageClassification
model = AutoModelForImageClassification.from_pretrained("not-lain/29004", trust_remote_code=True)
or you can use the pipeline
from transformers import pipeline
pipe = pipeline(model="not-lain/29004", trust_remote_code=True)
pipe(
"url",
download=True, # will call the download_img method
clean_output=False # will be passed as postprocess_kwargs
)
the pipeline supports the following parameters :
you can also use the following method to download images from the web
pipe.download_img(url)