wanning报错有如:
/anaconda3/envs/Strong_Baseline_of_Pedestrian_Attribute_Recognition/lib/python3.10/site-packages/torch/cuda/__init__.py:145: UserWarning: NVIDIA GeForce RTX 3060 with CUDA capability sm_86 is not compatible with the current PyTorch installation. The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_70. If you want to use the NVIDIA GeForce RTX 3060 GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/ warnings.warn(incompatible_device_warn.format(device_name, capability, " ".join(arch_list), device_name)) Traceback (most recent call last): File
在复现这个时Strong_Baseline_of_Pedestrian_Attribute_Recognition的readme.md的译文_rapv2数据集_葑歆的博客-CSDN博客
用的python3.10,努力下载能下载的版本,但最终运行时显示pyTorch版本不匹配。
解决方法:
不下载要求的版本,不下载固定版本,如“pip install torch==xxx -i https://pypi.tuna.tsinghua.edu.cn/simple ”,
不指定版本,让机器自己选择,如“pip install torch -i https://pypi.tuna.tsinghua.edu.cn/simple ”
我在这里只使用了“pip install torchvision -i https://pypi.tuna.tsinghua.edu.cn/simple ”,机器自动帮我选择好了对应的torch和torchvision