首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装mmf时的torchvision版本问题

安装mmf时的torchvision版本问题
EN

Stack Overflow用户
提问于 2020-06-24 03:25:35
回答 1查看 425关注 0票数 1

我正在尝试安装Facebook的mmf来复制ML竞争Hateful Memes的基准。我正在阅读Getting Started documentation here

这是我得到的:

代码语言:javascript
复制
(gpu) C:\Users\abc>pip install --upgrade --pre mmf
Collecting mmf
  Using cached mmf-1.0.0rc10.tar.gz (160 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
ERROR: Could not find a version that satisfies the requirement torchvision==0.6.0 (from mmf) (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.3.0, 0.4.1, 0.5.0)
ERROR: No matching distribution found for torchvision==0.6.0 (from mmf)
    ERROR: Could not find a version that satisfies the requirement torchvision==0.6.0 (from mmf) (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.3.0, 0.4.1, 0.5.0)
    ERROR: No matching distribution found for torchvision==0.6.0 (from mmf)

如果我检查我安装的conda包,我可以找到:

代码语言:javascript
复制
torch                     1.5.1                    pypi_0    pypi
torchvision               0.6.1                    pypi_0    pypi
EN

回答 1

Stack Overflow用户

发布于 2020-08-04 21:27:38

以下是一种解决方法:

1.在安装mmf之前,先安装指定版本的'torch‘和'torchvision’(否则会导致上述问题)

pip install torch==1.5.0 torchvision==0.6.0 -f https://download.pytorch.org/whl/torch_stable.html

不需要从pip安装mmf,可以通过fork存储库获得全新的功能。但是运行git clone https://github.com/facebookresearch/mmf.git也会导致an issue

2.运行以下命令从源文件中派生mmf并更改目录:

git clone --config core.symlinks=true https://github.com/facebookresearch/mmf.git

cd mmf

3.安装mmf:

pip install --editable .

4. OPTINAL运行测试:

pytest ./tests/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62542327

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档