自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 安装python 3.7.8

pandas有问题https://blog.csdn.net/sunxiaoju/article/details/103671548。XZ compressed source tarball 是CentOS系统下载的版本。Gzipped source tarball 是Linux系统下载的版本。安装一些环境依赖,不然安装python3.7.8以后部分代码会报错。利用grep命令查看已有的python路径。查看已使用的python版本的路径。1、换源以及环境准备。

2023-07-14 10:31:37 461

原创 torch.nn.parallel.DistrivutedDataParallel用法

因为GPU显存有限,batchsize上不去,所以考虑用torch.nn.parallel.DistributedDataParallel来解决,结合众多资料,整理出来一份能跑通的代码(很奇怪,突然就跑通,我不知道之前是哪里出了问题)

2023-05-19 16:41:37 217

原创 Adversarial camera stickers&The Translucent Patch

Adversarial camera stickers&The Translucent Patch论文阅读

2022-10-10 15:55:28 189

原创 计算目标检测的AP

计算目标检测中的AP

2022-08-03 10:25:33 230

原创 pytorch中常用的hooks函数

pytorch中hook的使用

2022-06-10 15:58:16 1143

原创 docker容器内更换python版本以及pip版本

step1:(换源之后)apt-get updatestep2:apt-get install python2.7step3:ls -l /usr/bin | grep python利用ls以及grep命令查看python默认指向step4:删除软连接rm /usr/local/bin/python在我的容器中python是在/usr/local/bin/python的位置,其他人也有可能是在/usr/bin/python位置step5:重新建立软连接ln -s /usr/bin/python

2022-02-22 19:39:37 6685

转载 docker内安装其他时出现Temporary failure resolving ‘security.ubuntu.com‘

解决方法参考:https://askubuntu.com/questions/91543/apt-get-update-fails-to-fetch-files-temporary-failure-resolving-error

2022-02-22 16:35:21 478

原创 from detectron2 import _C,ImportError: libtorch_cpu.so: cannot open shared object file: No such file

先附上torch官网和detectron2的安装说明地址pytorch: https://pytorch.org/get-started/previous-versions/detectron2 installation: https://detectron2.readthedocs.io/en/latest/tutorials/install.html按照官网方法安装相应版本的的detectron2之后出现报错,原因在于我安装的torch和torchvision无法相互对应。由于之前torch版本过

2021-10-20 09:38:51 3341

原创 tensorboard: error: invalid choice: ‘(No‘ (choose from ‘serve‘, ‘dev‘)

tensorboard: error: invalid choice: ‘(No’ (choose from ‘serve’, ‘dev’)使用命令 tensorboard --logdir runs即可解决如果遇到无法加载event的情况,尝试检查路径以及文件是否存在,然后使用 tensorboard --inspect --logdir runs,然后再重新运行 tensorboard --logdir runs命令...

2021-07-20 09:24:16 5712 1

原创 pillow将两张透明图片合成一张,透明背景不会遮挡像素点

img.paste和Image.composite的使用from PIL import Imageimport random def mix(src,dst,position): im1 = src im2 = dst layer = Image.new('RGBA', im1.size, (0, 0, 0, 0)) if im1.size[1] < im2.size[1]: left = 0 up = (im2.size[1]-

2021-05-18 19:50:59 986

原创 20201年四大顶会

NDSS 2021:https://www.ndss-symposium.org/ndss2021/accepted-papers/

2021-03-19 09:14:36 178

原创 Jupyter Notebook: 500 Internal Server Error

降版本pip install nbconvert5.4.1pip install tornado5.1.1重启jupyter

2021-03-09 12:09:35 217

原创 3张显卡但是torch.cuda.device_count = 1

有3张显卡但是torch.cuda.device_count = 1用nvidia-smi查看GPU信息如下显示但是在使用时,使用torch.rand(3,3).cuda('1)或者torch.rand(3,3).cuda('0‘’)出现错误CUDA error : invalid device ordinal,使用torch.cuda.device_count()查询,结果为1,如下图所示后来通过检查环境变量,发现环境变量设置有问题,原始设置如下所示,系统默认了GPU显卡为第二块显卡,所以出现了

2020-10-22 10:51:38 6845 3

原创 jupyter出现端口占用,firefox is already running……

jupyter出现端口占用,firefox is already running……出现上述报错的情况是,远程做实验,在服务器上开启了jupyter,但是长时间不操作以后,服务器连接断开,导致jupyter服务还在,下次再开启jupyter notebook时,提示端口占用,无法打开,这个时候有两种操作1、杀死之前的进程,以及新开启的进程,状态分别为listen和established(出现我上述报错的原因是,我在没有杀死最初的进程之前,尝试连接jupyter,造成了阻塞,但是之后我杀死了最初的lis

2020-10-16 19:22:52 321

原创 argparse

对于argparse模块中的一些问题import argparseparser = argparse.ArgumentParser()parser.add_argument('bar', action = 'store_true') # positional argument,位置参数,在运行代码时必须输入相应值parser.add_argument('-foo', action = 'store_true')# '-','--'都是optional argument,可选参数,在运行代码时

2020-09-18 10:29:51 101

空空如也

空空如也

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

TA关注的人

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