
环境配置创建
暖仔会飞
这个作者很懒,什么都没留下…
展开
-
opencv错误解决:TypeError: an integer is required (got type tuple)
最近在复现 YOLO 代码,其中要通过自己写的Dataset具体的内容是,将一个image在水平方向翻转,同时其对应的imgflip。原创 2023-01-18 11:29:53 · 962 阅读 · 0 评论 -
ValueError: can’t optimize a non-leaf Tensor?
【代码】ValueError: can’t optimize a non-leaf Tensor?原创 2023-01-11 15:43:47 · 1440 阅读 · 0 评论 -
ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
【代码】ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory。原创 2023-01-11 15:22:08 · 812 阅读 · 0 评论 -
git 学习之:当 github 的秘钥失效了怎么办,一直没有办法进行clone 和 push;解决办法:添加新的 SSH keys
https://blog.youkuaiyun.com/weixin_44394753/article/details/91410463主要操作步骤打开 github -> settings -> sshkeys and GPGkeys在计算机中打开 git bash输入 ssh-keygen -t rsa -C “xxxx@xxxx.com” (你的邮箱地址)cat ~/.ssh/id_rsa.pub复制产生的 ssh keys,并粘贴到 github 对应页面位置中,详情参照上面的博客原创 2022-01-21 15:13:29 · 1130 阅读 · 0 评论 -
环境配置之:pip 一步到位解决 pytorch-gpu 安装
诱因最近 conda 太不给力了,清华源的 conda 总是给默认装 cpu 版本,conda 自己速度又不太给力,所以干脆直接用 pip 解决但是 pip 通常无法提供像 conda 一样便捷的服务,需要考虑和解决很多版本适配的问题,所以这里介绍一种方法,直接 pip 一步到位方法pip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https://download.pytorch.org/wh原创 2022-01-17 23:43:31 · 10969 阅读 · 5 评论 -
jupyter notebook 问题解决:安装了插件 Nbentensions 并勾选了 HInterland 但依然无法进行代码自动补全
说明以下方法均用于:已经安装了 Nbextensions 插件,并且勾选了 Hinterland 之后依然没有自动提示的情况;即方法一:在 jupyter notebook 中输入:%config Completer.use_jedi = False但是每次都要键入这个未免太麻烦了方法二: conda install jedi=0.17.2python 的版本和 jedi 的版本要适配,python=3.6 的话,jedi=0.17.2...原创 2021-12-07 09:47:54 · 1502 阅读 · 2 评论 -
问题解决:如何正确安装 imbalance-learn
文章目录做好两件事:保证如下版本正确不要用 conda 装,用 pip 装已经用了 conda 装过的,先卸载用 pip 安装的步骤:pip install --user -U imbalanced-learn注意 --user 和 -U 要带着,注意 不要写成 pip install imblearn 否则容易有问题...原创 2021-12-02 11:39:35 · 3597 阅读 · 7 评论 -
EOFError: Compressed file ended before the end-of-stream marker was reached
文章目录错误原因解决方法windows 系统Linux 系统错误原因这种错误是因为利用 keras 来下载资源的时候中断,导致资源不完整导致解决方法找到 keras 的 datasets 文件夹,将其中不完整的文件删除,再重新利用 keras 下载资源即可解决windows 系统一般这个 .keras 的文件存在于 C: 盘,可以直接在搜索中输入 .keras 不要漏了.假设我是 fashion-mnist 数据集不完整,直接 deleteLinux 系统解决方法也原创 2020-11-09 11:06:59 · 4488 阅读 · 0 评论 -
在服务器远程配置 jupyter lab / jupyter notebook
文章目录服务器端安装jupyter lab / jupyter notebook1. 使用 cmd 连接远程服务器2. 使用anaconda 安装 jupyter notebook2. 配置 jupyter 文件3. 打开服务器端的 jupyter notebook 进行测试服务器端安装jupyter lab / jupyter notebook其实,在服务器端只支持 jupyter notebook,不过你要是非要下载 jupyter lab 也不是不行,但是之后无论你配置还是使用,都会显示 jupy原创 2020-11-09 10:47:33 · 6001 阅读 · 4 评论 -
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. If your s
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.If your shell is Bash or a Bourne variant, enable conda for the current user with $ echo ". /Users/matth...原创 2020-01-12 15:35:18 · 4140 阅读 · 2 评论 -
No module named 'pycocotools' / No module named 'pycocotools.mask'解决办法
pip install pycocotools无法解决最终解决方法:pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI问题解决原创 2020-01-03 14:58:50 · 2067 阅读 · 0 评论 -
linux 重命名文件夹,删除文件夹
linux 重命名文件夹,删除文件夹重命名文件夹例子:将目录A重命名为Bmv A B例子:将/a目录移动到/b下,并重命名为cmv /a /b/c其实在文本模式中要重命名文件或目录的话也是很简单的,我们只需要使用mv命令就可以了,比如说我们要将一个名为abc的文件重命名为1234就可以这样来写:mv abc 1234,但是要注意的是,如果当前目录下也有个1234的文件的话,我们的这...原创 2019-11-17 12:35:22 · 623 阅读 · 0 评论 -
linux 16.04 + cuda-10.1 + cudnn-7.6.5 + caffe 精细版
linux16.04 + NVIDIA 1080ti + cuda-10.1 + cudnn-7.6.5 + Opencv-3.4 + caffe (GPU) 精简版原创 2019-11-17 12:14:46 · 3029 阅读 · 0 评论 -
linux anaconda下载和配置以及创建一个虚拟环境(超级简单!!)
下载打开网页 https://www.anaconda.com/distribution/选择anaconda3 或者anaconda2 进行下载下载成功的话会出现一个.sh的文件在下载anaconda 压缩包的文件夹里面打开终端 ( ctrl +alt+t )bash 后面跟那个.sh文件的名字 就会进入安装程序按enter一直到程序问你 "yes" or "no" 选择yes 然...原创 2019-11-05 15:25:15 · 764 阅读 · 0 评论