logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

将python添加到环境变量

此电脑右键--属性高级系统设置-- 环境变量--系统变量里找到 Path 然后选择编辑进入下面的页面后,选择新建,然后把你装的 python 路径放上然后测试,在一个写好测试文件 (hello.py) 的文件夹里按住shift 右键,选择在此处打开 Powershell 窗口输入 python hello.py...

Colab连接到GoogleDrive并运行自己的文件

1. 代码连接# 运行后出现URL,点击获得你的认证码from google.colab import drivedrive.mount('/content/drive')# 列出你云盘里有啥! ls "/content/drive//My Drive/"# 读取云盘里的文件喽,我这里读的是 bbc-text.csvwith open("/content/drive//My Drive/bbc-t

transformers本地加载roberta模型pytorch

本地加载roberta-base模型文件,在该网站下载模型文件:roberta-base at main (huggingface.co)所需的有 config.json, merges.txt, pytorch_model.bin, vocab.json路径组织结构:└─model│ merges.txt│ vocab.json│└─roberta-baseconfig.json...

#自然语言处理#pytorch#深度学习
(pytorch) bert-base-chinese模型文件下载

进入 hugging face 的这个网站:https://huggingface.co/bert-base-chinese#如下图,点开 list files in model 就可以看到需要下载的文件了

#自然语言处理#深度学习#pytorch +1
IndexError: too many indices for tensor of dimension 1

有点匪夷所思,错误解决是在 model 模块,# 报错logits = self.linear(pooled_output)# 没问题了logits = self.linear(pooled_output).view(batch_size, self.num_classes)

OSError WinError 182 Error loading Anaconda3\lib\site-packages\torch\lib\caffe2_detectron_ops.dll

https://github.com/pytorch/pytorch/issues/35803pip install intel-openmp

TypeError: forward() missing 1 required positional argument: ‘input_ids‘

用的多GPU的数据并行方法DataParallel ,这老出错原 batch_size 我设的 8,谷歌到该 github issuehttps://github.com/Eromera/erfnet_pytorch/issues/2然后 batch_size 设为 9 目前能跑通

vscode could not establish connection to linux The VS Code Server failed to start

vscode could not establish connection to linux The VS Code Server failed to startThe remote host may not meet VS Code Server's prerequisites for glibc and libstdc++

#vscode#c语言#linux
vscode could not establish connection to linux The VS Code Server failed to start

vscode could not establish connection to linux The VS Code Server failed to startThe remote host may not meet VS Code Server's prerequisites for glibc and libstdc++

#vscode#c语言#linux
到底了