上传者: 42166105
|
上传时间: 2022-03-07 18:30:48
|
文件大小: 1.89MB
|
文件类型: -
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