logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

ModuleNotFoundError: No module named ‘faiss‘

解决:终端进入环境:conda install -c conda-forge faiss-gpu。下载.whl文件仍然出现错误。激活虚拟环境,进行安装。

文章图片
#faiss#python#linux
pytorch:AttributeError: ‘GlobalStorage‘ object has no attribute ‘train_mask‘

【代码】pytorch:AttributeError: ‘GlobalStorage‘ object has no attribute ‘train_mask‘

文章图片
#python#机器学习#pytorch
error: no commands supplied 解决办法

首先win+R打开终端,并激活虚拟环境,进入代码保存的路径(先输入所在盘,如D:,在使用cd+详细地址,如cd D:\pycharm location\pygcn-master\pygcn-master),之后再输入Python setup.pyinstall。当从GitHub上下载下代码在本地运行时,运行setup.py出现以下报错时,采用以下方法解决。然后就会自动安装依赖。

文章图片
#python#pip#conda
Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same or input

在训练模型时使用的gpu,而在预测时使用cup导致,所以需要将预测图片加上.cuda(),使用GPU进行预测。

文章图片
#python#深度学习#人工智能
到底了