自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 解决Python运行时qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in问题

更新conda后运行python可能遇到qt.qpa.plugin: Could not find the Qt platform plugin "windows" in “”问题,是因为Qt不存在或者环境变量中没有设置。注意路径是D:\Anaconda\Library\plugins\platforms,不是在site-packges中的PyQt5中的plugins\platforms。或者在环境变量中设置上述路径。

2023-05-23 12:36:29 2262 1

原创 《python基础教程第3版》笔记——对象和魔法(6到9章)

1函数说明:在函数中写一个字符串说明,用__doc__属性访问def cal(x): 'Calculate the square of x' return x * xprint(cal.__doc__)2列表作为参数传入函数时会改变列表中的值,类似指针,需要采用深拷贝确保原始列表不会改变。可以采用切片的方法,如n = name[:],这样n能获得name的全部值且地址不同。字典也会改变,只要是可改变的数据类型一般都会改变,元组和数不会改变。3‘zhao ming xu’.sp

2022-01-15 10:13:08 466

原创 train.py部分

plots = not evolve # create plots cuda = device.type != 'cpu' init_seeds(1 + RANK) with torch_distributed_zero_first(LOCAL_RANK): data_dict = data_dict or check_dataset(data) # check if None 这里的check_dataset会把train,val生成为p...

2022-01-01 21:42:08 429

原创 utils.general详解1

class WorkingDirectory(contextlib.ContextDecorator): # 改变函数的工作路径 # Usage: @WorkingDirectory(dir) decorator or 'with WorkingDirectory(dir):' context manager def __init__(self, new_dir): self.dir = new_dir # new dir self.cwd = Path.c

2022-01-01 20:10:04 1923

原创 ModelEMA——滑动平均

class ModelEMA: """ Model Exponential Moving Average from https://github.com/rwightman/pytorch-image-models Keep a moving average of everything in the model state_dict (parameters and buffers). This is intended to allow functionality like h

2022-01-01 17:16:42 4480

原创 callbacks&loggers

if RANK in [-1, 0]: loggers = Loggers(save_dir, weights, opt, hyp, LOGGER) # loggers instance if loggers.wandb: data_dict = loggers.wandb.data_dict if resume: weights, epochs, hyp = opt.weights, opt.

2022-01-01 16:20:05 1385 1

原创 yolov5中的targets和imgs

imgs.shape :torch.Size([4, 3, 640, 640])targets.shape:torch.Size([9, 6])targets:tensor([[0.00000, 0.00000, 0.33555, 0.46680, 0.03516, 0.02734],[1.00000, 0.00000, 0.46797, 0.54727, 0.03594, 0.02891],[2.00000, 0.00000, 0.64336, 0.55273, 0.06641, 0.02734

2022-01-01 16:04:25 1419

原创 yolo中锚框问题

anchors:[10,13, 16,30, 33,23] # P3/8[30,61, 62,45, 59,119] # P4/16[116,90, 156,198, 373,326] # P5/32这里的每一行代表一个尺度下的三个锚框,比如第一行是stride=8时的三个锚框,分别为1013,1630,33*23时比较适合检测小目标的尺度。...

2022-01-01 11:16:22 2077

原创 yolov5的问题总结

yolo.py一般前向推理时常用的还是forward_once就可以Detect中的stride可以理解为网格的大小,例如取输入为[4,3,640,640]则根据anchors的大小计算出stride为[8,16,32],则输出为[4,3,80,80,85],[4,3,40,40,85],[4,3,20,20,85]。80*8=640,40*16=640,20*32=640。class Model(nn.Module): def __init__(self, cfg='yolov5s.ya

2022-01-01 11:08:10 3583 1

原创 yolov5网络结构分析

yolov5s的网络结构简析

2022-01-01 10:42:09 865

原创 Matlab基础学习——矩阵和画图1

Matlab基础学习——矩阵和画图1% ini=imread('E:\G2\data\images_test_A\image000000.jpg');% inigray = rgb2gray(ini);% img = fftshift(fft2(inigray));% imshow(img);n = 2^10; % size of maskM = zeros(n);I = 1:n; x = I-n/2; % mask x-coor

2021-12-06 21:03:18 2556

空空如也

空空如也

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

TA关注的人

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