CLIP Image Classification:带有OpenAI的CLIP的图像分类脚本。根据给定的任何类别进行分类并且可以使用预加载的类别(例如Image
CLIP图像分类 使用 from classify import load , classify filename = "/content/input.jpg" load_categories = "imagenet" print ( "loading categories" ) load ( load_categories ) print ( "classifying" ) print ( classify ( filename )) load load ( "imagenet" ) #imagenet categories load ( "pokemon" ) #loads a list of 721 pokemon names as categories load ( "dog vs cat" ) #dog and cat as categories load ( "words i
文件列表
CLIP-Image-Classification-main.zip
(预估有个12文件)
CLIP-Image-Classification-main
README.md
2KB
LICENSE
1KB
Multi_Domain_Pretrained_Classifier_with_CLIP.ipynb
734KB
categories
pokemon.txt
9KB
communism.txt
90KB
map_clsloc.txt
24KB
clip
simple_tokenizer.py
5KB
暂无评论