笔记
yuchenovo
这个作者很懒,什么都没留下…
展开
-
个人记录:enforce fail at /pytorch/third_party/gloo/gloo/transport/tcp/device.cc:208]
RuntimeError: [enforce fail at /pytorch/third_party/gloo/gloo/transport/tcp/device.cc:208] ifa != nullptr. Unable to find interface for: [0.0.1.52]参考:https://discuss.pytorch.org/t/runtime-error-using-distributed-with-gloo/16579ifconfig查看第一个以太网接口名称’name’原创 2022-03-26 16:39:23 · 4313 阅读 · 1 评论 -
个人笔记:常用命令
查看虚拟环境conda env list创建虚拟环境conda create -n your_env_name python=3.x删除某虚拟环境conda env remove --name your_env_name 查看torch能否正常使用cudapythonimport torchprint(torch.__version__)torch.cuda.is_avaiable() #true即可...原创 2021-12-16 15:33:29 · 243 阅读 · 0 评论 -
bytetrack-demo
Ubuntu系统下python3.6cuda=10.1conda create -n bytetrack python=3.6conda activate bytetrack装好torch和torchvisiontorch=1.7.0torchvision=0.8.1将作者给的代码克隆到本地后,把requirements.txt中torch和torchvision删去cd ByteTrackpip install -i https://pypi.tuna.tsinghua.edu.cn原创 2021-12-14 21:30:21 · 4583 阅读 · 1 评论 -
个人记录torch.cuda.is_available()==false;print(torch.__version__) --->1.8.0+cpu
输入:nvcc -V输入:nvidia-smitorch无法使用cuda使用ubuntu时也出现同样的问题,最后发现是自己安装时命令没没搞明白。例如实验室服务器的cuda版本是10.1,所以在安装时先查看官网pytorch官网以torch1.7.0为例,如果使用conda安装,则:如果使用pip安装:之前使用pip安装时一直没有加上“+cu101”,其中torchvision根据命令行提示,安装了torchvision+cu101版本。OK...原创 2021-12-13 13:17:51 · 2108 阅读 · 0 评论