Views
No views yet
1from transformers import AutoModelForImageClassification
2model = AutoModelForImageClassification.from_pretrained("not-lain/mycustomarchitecture", trust_remote_code=True)1from transformers import pipeline
2pipe = pipeline(model="not-lain/mycustomarchitecture", trust_remote_code=True)
3pipe(
4 "url",
5 download=True, # will call the download_img method
6 clean_output=False # will be passed as postprocess_kwargs
7 )pipe.download_img(url)