Android
Android Studio完全卸载 在安装目录中找到uninstall,然后卸载整个安装文件夹 找到Android SDK安装目录,手动删除 在用户文件夹中(如C:Users/yourname/) 找到”.android”, “.AndroidStudioX.X”, “.gradle”等文件夹(如果有的话,一般进行第一步的时候也会同时删除)
Github-stars
Github上star的项目分类StyleGanDesinging an Encoder for StyleGAN Image ManipulationEncoding in Style: a StyleGAN Encoder for Image-to-Image TranslationFace Identity Disentanglement via Latent Space MappingOnly a Matter of Style: Age Transformation Using a Style-Based Regression ModelFace AgingLifespan Age Transformation Synthesis codeOnly a Matter of Style: Age Transformation Using a Style-Based Regression ModelFace Aging with Identity-Preserved Conditional Generative Adversarial NetworksAge Progres...
Pytorch-Q&A
Pytorch Bug记录RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead. 解决方法view()需要Tensor中的元素地址是连续的,但可能出现Tensor不连续的情况,所以先用 .contiguous() 将其在内存中变成连续分布: 1out = out.contiguous().view(out.size()[0], -1) RuntimeError: The size of tensor a (32) must match the size of tensor b (28) at non-singleton or ValueError: expected sequence of length 51 at dim 1 (got 0) 问题及解决pytorch中将list转为ten...
OS-Linux-screen
screen 使用命令行下的screen命令创建名为xuedue的session 1screen -S xuedue 列出当前所有session 1screen -ls 远程离线(detach)名为xuedue的session(如果有多个同名记得带编号) 1screen -d name 回到名为xuedue的session 1screen -r xuedue 删除名为xuedue的session 1screen -X -S xuedue quit session中使用Ctrl+a的命令只记录一些最常用的离线当前session 1Ctrl+a+d
Linux 介绍和命令
查看PID所在的文件夹12cd /proc/23333 ls -al 1. Ubuntu Linux 系统的介绍1.1. Linux 操作系统的概述Linux 是一种自由和开源的 UNIX 类操作系统,其源代码可以被公开研究、更改和分发。Linux 由芬兰的 Linus Benedict Torvalds 于 1991 年首次发布,其设计遵循了 POSIX 和 Unix 的标准。 Linux 是一个多用户、多任务、支持多线程和多 CPU 的操作系统。它能运行主要的 UNIX 工具软件、应用程序和网络协议,也支持 32 位和 64 位硬件。 Linux 的内核原始代码由 Linus Benedict Torvalds 撰写,但现在世界各地的程序员都参与了 Linux 的开发。根据开放源代码的特性,任何人都可以修改和改进 Linux,并且这种改动可以被广泛传播,让其他人也能从中受益。 1.2. Linux 和 Windows 的主要区别对于 C 开发者来说,Linux 和 Windows 的主要区别体现在以下几个方面: 开发环境:Linux 提供了强大的终端和命令行工具,如 Ba...
Markdown语法记录
只记录自己在写的时候会发问的语法(以防忘记 加粗,斜体,删除线 语法 效果 **加粗** 加粗 *斜体* 斜体 ***粗斜体文本*** 粗斜体文本 ~~删除线~~ 删除线 代码块语法 ``` language ``` 效果 1 csdn或者hexo上显示连续中划线-- 在连续中划线之间使用零宽不连字 ‌ 语法 效果 -‌- -- 直接用``进行包裹 语法 效果 `–` -- 添加分割线语法 12345*** * * * ***** - - - ---------- 效果 添加待办事项语法 12- [ ] 准备做- [x] 已经完成 效果 准备做 已经完成 Markdown添加参考文献参考资料
python-plt
python中Plt库相关函数只讲使用,不讲参数 12345678# 创建画布,画布大小(长,高),提供了顶层Artistfig = plt.figure(figsize=(16, 8))# 将画布分割为2*4的8个子块,控制所有图元的子图和顶层容器的默认间距gs = fig.add_gridspec(2, 4)# 创建一个子图[行位置,列位置]fig.add_subplot(gs[0, 0])# 自动调整子图参数,使之填充整个图像区域plt.tight_layout()
python-二维码
python 压缩文本内容并生成二维码单文本压缩并生成二维码需求: 对文本内容进行压缩,并生成二维码,二维码中包含压缩后的文本内容。解码时,对二维码中的内容进行解压缩,还原文本内容。 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263import zlibimport base64import qrcodefrom PIL import Imagedef compress_text(): # 要压缩的文本 text = """ 这是一个需要压缩并生成二维码的文本内容。 """ # 压缩文本 compressed_data = zlib.compress(text.encode('utf-8')) # 将压缩后的二进制数据编码为 Base64 字符串(方便二维码存储) com...
Pytorch环境相关
显卡,显卡驱动,nvcc, cuda driver,cudatoolkit,cudnn到底是什么?https://www.cnblogs.com/marsggbo/p/11838823.html conda 换源 查看原来的镜像源1conda config --show 删除旧镜像源1conda config --remove channels <https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/cpu/> 添加新镜像源1conda config --add channels <https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/cpu/> 设置搜索时显示通道地址1conda config --set show_channel_urls yes 查看已有的channel1conda config --show channels 添加新的channel 12345conda config --add channels <http...
Pytorch visdom相关
Visdom远程连接此方法同样适用于tensorboard,streamlit(已知,且亲自尝试过) 连接ssh时,将服务器的8097端口重定向到自己机器上的18097端口:1ssh -L 18097:127.0.0.1:8097 xuedue@125.216.231.147 在服务器上使用8097端口正常启动Visdom1visdom 在本地浏览器中输入local host地址再加上重定向的端口号:1http://127.0.0.1:18097/

