39 Star 235 Fork 71

OpenDocCN / pytorch-doc-zh

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
33.md 664 Bytes
一键复制 编辑 原始数据 按行查看 历史
布客飞龙 提交于 2021-10-14 22:51 . 2021-10-14 22:51:06

torchvision

torchvision包朗阔了目前流行的数据集,模型结构和常用的图片转换工具。

如下代码用于获取加载图像的包的名称。

torchvision.get_image_backend() 

指定用于加载图像的包。

torchvision.set_image_backend(backend) 

参数: backend(string)-backend 代表图片名称。属于{'pil ','accimage'}之一。accimage 包使用 Intel IPP 库。速度比 PIL 快,但不支持多操作。

译者署名

用户名 头像 职能 签名
Song 翻译 人生总要追求点什么
1
https://gitee.com/OpenDocCN/pytorch-doc-zh.git
git@gitee.com:OpenDocCN/pytorch-doc-zh.git
OpenDocCN
pytorch-doc-zh
pytorch-doc-zh
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891