mmfewshot配置教程

mmfewshot 环境配置教程:

问题描述:如果按官方配置教程配置环境,会出现mmcls/mmcvfull/和mmdet包不匹配的问题
环境说明:显卡:rtx3070, cuda使用conda安装

  1. 使用conda直接安装我这里配置好的环境
# 导出Conda环境
# conda env export > mmfewshot_environment.yml
# 复现Conda环境
conda env create -f mmfewshot_environment.yml
  1. 通过这种方法安装的会有mmcvfull/和mmdet文安装成功的情况,手动安装以下即可
mim install mmcv-full==1.5.0 #  版本号可以看mmfewshot_environment.yml这个文件
mim install mmcls==0.23.0
  1. 安装mmfewshot:
# install mmfewshot
git clone https://github.com/open-mmlab/mmfewshot.git
cd mmfewshot
pip install -r requirements/build.txt
pip install -v -e .  # or "python setup.py develop"

配置文件

文件名称:mmfewshot_environment.yml

name: mmfewshot
channels:
  - pytorch
  - https://repo.anaconda.com/pkgs/main
  - defaults
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=4.5=1_gnu
  - blas=1.0=mkl
  - bzip2=1.0.8=h7b6447c_0
  - ca-certificates=2022.2.1=h06a4308_0
  - certifi=2021.10.8=py37h06a4308_2
  - cudatoolkit=11.3.1=h2bc3f7f_2
  - ffmpeg=4.3=hf484d3e_0
  - freetype=2.11.0=h70c0345_0
  - giflib=5.2.1=h7b6447c_0
  - gmp=6.2.1=h2531618_2
  - gnutls=3.6.15=he1e5248_0
  - intel-openmp=2021.4.0=h06a4308_3561
  - jpeg=9d=h7f8727e_0
  - lame=3.100=h7b6447c_0
  - lcms2=2.12=h3be6417_0
  - ld_impl_linux-64=2.35.1=h7274673_9
  - libffi=3.3=he6710b0_2
  - libgcc-ng=9.3.0=h5101ec6_17
  - libgomp=9.3.0=h5101ec6_17
  - libiconv=1.15=h63c8f33_5
  - libidn2=2.3.2=h7f8727e_0
  - libpng=1.6.37=hbc83047_0
  - libstdcxx-ng=9.3.0=hd4cf53a_17
  - libtasn1=4.16.0=h27cfd23_0
  - libtiff=4.2.0=h85742a9_0
  - libunistring=0.9.10=h27cfd23_0
  - libuv=1.40.0=h7b6447c_0
  - libwebp=1.2.2=h55f646e_0
  - libwebp-base=1.2.2=h7f8727e_0
  - lz4-c=1.9.3=h295c915_1
  - mkl=2021.4.0=h06a4308_640
  - mkl-service=2.4.0=py37h7f8727e_0
  - mkl_fft=1.3.1=py37hd3c417c_0
  - mkl_random=1.2.2=py37h51133e4_0
  - ncurses=6.3=h7f8727e_2
  - nettle=3.7.3=hbbd107a_1
  - numpy=1.21.2=py37h20f2e39_0
  - numpy-base=1.21.2=py37h79a1101_0
  - openh264=2.1.1=h4ff587b_0
  - openssl=1.1.1m=h7f8727e_0
  - pillow=9.0.1=py37h22f2fdc_0
  - pip=21.2.2=py37h06a4308_0
  - python=3.7.11=h12debd9_0
  - pytorch=1.10.2=py3.7_cuda11.3_cudnn8.2.0_0
  - pytorch-mutex=1.0=cuda
  - readline=8.1.2=h7f8727e_1
  - setuptools=58.0.4=py37h06a4308_0
  - six=1.16.0=pyhd3eb1b0_1
  - sqlite=3.37.2=hc218d9a_0
  - tk=8.6.11=h1ccaba5_0
  - torchvision=0.11.3=py37_cu113
  - typing_extensions=3.10.0.2=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.2.5=h7b6447c_0
  - zlib=1.2.11=h7f8727e_4
  - zstd=1.4.9=haebb681_0
  - pip:
      - absl-py==1.0.0
      - addict==2.4.0
      - blessings==1.7
      - cached-property==1.5.2
      - cachetools==5.0.0
      - charset-normalizer==2.0.12
      - click==7.1.2
      - colorama==0.4.4
      - cycler==0.11.0
      - cython==0.29.34
      - fonttools==4.32.0
      - google-auth==2.6.0
      - google-auth-oauthlib==0.4.6
      - grpcio==1.44.0
      - idna==3.3
      - importlib-metadata==4.11.2
      - joblib==1.1.0
      - kiwisolver==1.4.2
      - markdown==3.3.6
      - matplotlib==3.5.1
      - mmcls==0.23.0
      - mmcv-full==1.5.0
      - mmdet==2.24.1
      - model-index==0.1.11
      - nvidia-ml-py3==7.352.0
      - oauthlib==3.2.0
      - opencv-python==4.5.5.64
      - openmim==0.1.5
      - ordered-set==4.1.0
      - packaging==21.3
      - pandas==1.3.5
      - protobuf==3.19.4
      - psutil==5.9.0
      - pyasn1==0.4.8
      - pyasn1-modules==0.2.8
      - pycocotools==2.0.4
      - pyparsing==3.0.8
      - python-dateutil==2.8.2
      - pytz==2021.3
      - pyyaml==6.0
      - requests==2.27.1
      - requests-oauthlib==1.3.1
      - rsa==4.8
      - scikit-learn==1.0.2
      - scipy==1.7.3
      - sklearn==0.0
      - tabulate==0.8.9
      - tensorboard==2.8.0
      - tensorboard-data-server==0.6.1
      - tensorboard-logger==0.1.0
      - tensorboard-plugin-wit==1.8.1
      - tensorboardx==2.5
      - terminaltables==3.1.10
      - threadpoolctl==3.1.0
      - tqdm==4.63.0
      - urllib3==1.26.8
      - werkzeug==2.0.3
      - yacs==0.1.8
      - yapf==0.32.0
      - zipp==3.7.0
prefix: /home/lab701/anaconda3/envs/mmfewshot

reference:Conda环境的复制与迁移:https://blog.csdn.net/JohnJim0/article/details/125876692

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

放羊Wa

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值