当前位置:网站首页>Recommended website for drawing result map
Recommended website for drawing result map
2022-04-23 12:40:00 【Dong Xuan】
Reference link :
from torchvision.datasets import CIFAR100
cifar100 = CIFAR100(os.path.expanduser("~/.cache"), transform=preprocess, download=True)
text_descriptions = [f"This is a photo of a {label}" for label in cifar100.classes]
text_tokens = clip.tokenize(text_descriptions).cuda()
with torch.no_grad():
text_features = model.encode_text(text_tokens).float()
text_features /= text_features.norm(dim=-1, keepdim=True)
text_probs = (100.0 * image_features @ text_features.T).softmax(dim=-1)
top_probs, top_labels = text_probs.cpu().topk(5, dim=-1)
版权声明
本文为[Dong Xuan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231153306545.html
边栏推荐
- ZigBee CC2530 minimum system and register configuration (1)
- At instruction of nbiot
- BaseRecyclerViewAdapterHelper 实现下拉刷新和上拉加载
- 对话PostgreSQL作者Bruce:“转行”是为了更好地前行
- 一个平面设计师的异想世界|ONES 人物
- RT-thread中关键词解释及部分API
- php生成json处理中文
- 21 天学习MongoDB笔记
- [unity note] basic lighting in l4unity
- How to switch PHP version in Windows 2008 system
猜你喜欢

Intelligent multi line elastic cloud adds independent IP address. How to realize multi line function?

SQL exercise (I)

网络信息安全之零信任

How do traditional enterprises cope with digital transformation? These books give you the answer

S2-062 远程命令执行漏洞复现(cve-2021-31805)

A graphic designer's fantasy world | ones characters

力扣刷题之完全二叉树的节点个数

对话PostgreSQL作者Bruce:“转行”是为了更好地前行

NPDP | how can product managers not be excluded by programmers?

Basic software testing Day2 - Case Execution
随机推荐
box-sizing
leetcode:437. 路径总和 III【dfs 选还是不选?】
A graphic designer's fantasy world | ones characters
Kubernetes 入门教程
【微信小程序】z-index失效
STM32控制步进电机(ULN2003+28byj)
Analysis of InnoDB execution process in MySQL
Uni app native app local packaging integrated Aurora push (jg-jpush) detailed tutorial
标签与路径
只是不断地建构平台,不断地收拢流量,并不能够做好产业互联网
4.DRF 权限&访问频率&过滤&排序
Source code analysis of synchronousqueue
NBIOT的AT指令
Image attribute of input: type attribute of fashion cloud learning -h5
Web17 -- use of El and JSTL
SQLserver怎么插入或更新当天的星期数,bit而不是文本
甲辰篇 創世紀《「內元宇宙」聯載》
传统企业如何应对数字化转型?这些书给你答案
How do programmers finalize nucleic acid statistics with 130 lines of code
栈和队列a