自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(24)
  • 收藏
  • 关注

原创 Ubuntu 自启动程序(比如frp)

Ubuntu 自启动程序(比如frp)参考:https://blog.csdn.net/littlle_yan/article/details/78844286https://www.cnblogs.com/ohsolong/p/14184987.html编写可执行脚本先为frp写一个可执行脚本建立一个文档,随便取个名字然后将要执行的命令放入其中,但是保证文档最顶上有个#!/bin/bash(独占一行)就行。比如 我要执行 frpc#!/bin/bashcd /frp/./frpc -

2021-09-30 16:48:53 224

原创 ipynb转markdown

不知道为什么ipynb里面没法显示图片,为了阅读体验,没办法只能转为markdown了jupyter nbconvert --to markdown 特征处理.ipynb

2021-07-09 15:27:32 387

原创 tensorboard 一片空白

这里写自定义目录标题tensorboard 一片空白tensorboard 一片空白莫名其妙的遭遇了这个问题,之前都还好好的。用遍了网上的各种方案都不行后。一回忆发现用之前vscode弹出了一个框说要下载一个插件,怀疑是这个插件有问题。pip uninstall torch-tb-profiler卸载之后果然就好了,vscode不靠谱啊。看来之前搞得我的tensorboard只能在vscode里面运行的罪魁祸首就是vscode。。。。。...

2021-06-23 01:06:11 401 2

原创 Obsidian 图片显示问题

Obsidian 图片显示问题今天用了下Obsidian这个软件,观感还不错,打算继续用下去。不过遇到了一个问题。那就是图片没法显示。原本使用的是typora来进行图片插入的。插入默认的语法是![图片名][图片绝对路径],我自己用的话习惯是改为![图片名][图片名]。图片就直接和笔记放在同一个文件夹下面,这样写无论typora还是vscode都可以读出来的(Obsidian也可以)。但是用了Obsidian的话,就不太想把图片和笔记一起放在一个文件夹里面了(太丑了),而是考虑把图片单独放一个文件夹里面。

2021-05-26 16:51:04 25023 3

原创 pytorch 1.8版本tensorboard无法使用

pytorch 1.8版本tensorboard无法使用安装了pytorch 1.8 结果今天导入tensorboard发现出问题了。有点懵逼,pytorch明明自带了tensorboard的,怎么回事。pip install tb-nightly安装个tb-nightly就可以用了

2021-05-22 16:56:13 1241

原创 安装cuda 11 ,cudnn,pytorch 1.7

安装cuda ,cudann,pytorch1. 安装cuda先康康电脑里面有没有nvcc -V结果当然是没有。要安装首选需要康康自己的显卡能支持到多少的cuda打开这个(可以通过搜索直接搜到。)点击系统信息在组件栏可以发现我的电脑支持11.0.228以下的driver。想用新一点的,所以打算就直接安装cuda11https://developer.nvidia.com/cuda-toolkit去官网下载进去发现直接就是11update。找了一下才找到以前的版本下载的位置。

2020-11-23 18:13:18 3928 2

原创 windows平台上的ffmpeg安装

windows平台上的ffmpeg安装目的是想得到ffmpeg.exe方便直接调用。https://ffmpeg.org/download.html#releases这个是官网,不过官方提供了源代码。一开始来没找到编译后的文件。仔细一看,官方还是给了他人编译的链接。https://github.com/BtbN/FFmpeg-Builds/releaseshttps://www.gyan.dev/ffmpeg/builds/windows平台的就两个。不过更新的都挺快的感觉。我下载的这个,

2020-11-15 00:24:27 921

原创 Process returned 12 (0xC)

标题Process returned 12 (0xC)Process returned 12 (0xC)配置CB支持C++11的时候遇到了这个问题。在网上查也没什么结果,貌似有点冷门的样子http://forums.codeblocks.org/index.php?topic=20609.0https://en.sfml-dev.org/forums/index.php?topic=18887.0只找到这两篇,参考价值也不大的样子感觉不是什么大问题,于是尝试卸载重装。重装之后就能用了..

2020-06-15 13:43:10 346

原创 OSError: [Errno 12] Cannot allocate memory tensorboard导致

OSError: [Errno 12] Cannot allocate memory训练模型训练着突然出现了OSError: [Errno 12] Cannot allocate memory这个错误。watch -n 2 free -m 查看缓存情况发现used里面竟然占了3个多G!按照https://blog.csdn.net/qq_34192019/article/details/100011839中的 [sudo] wxy 的密码: root@wxy:~# sync

2020-05-30 10:43:45 1124

原创 VS Code配置python测试环境

VS Code配置python测试环境前提:已经可以在VS Code上面跑python了一:安装插件二:安装pytestPip install pytest三:在VS Code的settings里面添加:这两行三:写程序测试将测试文件和被测试文件放在同一文件夹中,在Vscode中打开有test前缀的会自动识别成测试的文件,下方有这样的按钮点击之后再点一下弹出的选项就可...

2020-05-01 16:21:19 2061

原创 windows安装pymouse

安装pymousepip install pymouse遇到报错ModuleNotFoundError: No module named ‘windows’此时需要下载一个叫 PyUserinput的包pip install PyUserinput但是遭遇Could not find a version that satisfies the requirement pyHook ...

2020-04-13 17:26:52 3444

原创 记录一些比较好的博文

Base64编码应用场景及其原理https://blog.csdn.net/makenothing/article/details/81155960

2020-04-08 16:20:03 152

原创 windows使用convert_torch转换模型

前言想要使用https://github.com/clcarwin/convert_torch_to_pytorch但是必须要pytorch0.4.1的环境打算创一个虚拟环境虚拟环境相关命令1、创建python虚拟环境。使用 conda create -n your_env_name python=X.X(3.6等)命令创建python版本为X.X、名字为your_env_name的...

2020-03-26 00:06:07 733

原创 指定目录打开jupyter notbook

指定目录打开jupyter notbookrem dirjupyter notebook pause复制进.bat文件放进想要在jupyter里面打开的目录,双击bat文件,就可以打开了

2020-03-18 13:16:11 107

原创 linux下opencv-python的安装

linux下opencv-python的安装安装命令:pip install opencv-python遇到的出错问题: from .cv2 import *ImportError: libSM.so.6: cannot open shared object file: No such file or directory解决方案:sudo apt-get install li...

2020-02-26 11:32:44 3125

原创 【pta甲级】1009. Product of Polynomials (25)

Sample Input:2 1 2.4 0 3.22 2 1.5 1 0.5Sample Output:3 3 3.6 2 6.0 1 1.6还是用map做的,还是做复杂了,用普通的数组直接做就挺好的用map反而不好处理细节#include<bits/stdc++.h>using namespace std;int main(){ int n; ...

2019-11-17 11:53:41 165

原创 【pta甲级】1005 Spell It Right (20 分)

1005 Spell It Right (20 分)Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.Input Specification:Each input file co...

2019-11-12 17:26:47 95

原创 【pta甲级】1006 Sign In and Sign Out (25 分)

1006 Sign In and Sign Out (25 分)At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the recor...

2019-11-12 16:09:09 179

原创 vscode常用快捷键

Ctrl + Shift + P,打开命令面板Ctrl + f 搜索Ctrl +` 打开终端Ctrl + 放大Ctrl - 缩小Ctrl + ←→ 以单词为单位移动光标Ctrl + Shift + \ 在括号间跳转移动光标的同时按住shift,会把字符全部选中Ctrl + shift + k 删除当前代码行Ctrl + x 剪切当前代码行Ctrl + enter 在当前行...

2019-11-12 00:20:08 419

原创 【pta 甲级】1002 A+B for Polynomials (25 分)

1002 A+B for Polynomials (25 分)This time, you are supposed to find A+B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and ...

2019-11-11 11:31:11 114

原创 【pta 甲级】1008 Elevator (20 分)

1008 Elevator (20 分)The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified ...

2019-11-11 09:06:46 112

原创 [pta 甲级]1001 A+B Format (20 分)

1001 A+B Format (20 分)Calculate a+b and output the sum in standard format – that is, the digits must be separated into groups of three by commas (unless there are less than four digits).Input Specif...

2019-11-10 18:42:00 167

原创 pytorch 报错:synchronize: device-side assert triggered

参考这篇博客:https://blog.csdn.net/sinat_29957455/article/details/95493564通过减少学习速率解决了这个问题

2019-10-28 21:56:48 247

原创 使用torchsummary出现报错RuntimeError: cuda runtime error (30) : unknown error at ..\aten\src\THC\THCGenera

使用torchsummary出现报错RuntimeError: cuda runtime error (30) : unknown error at …\aten\src\THC\THCGenera在语句的前面加上torch.cuda.current_device()就可以了import torchfrom torchvision import modelsfrom torchsum...

2019-10-27 19:34:02 2735

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除