ruijiege

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 35 下一页

2022年11月2日

摘要: import numpy as np def draw_gauss(heatmap, x, y, gsize): height, width = heatmap.shape[:2] gsize += 1 - (gsize % 2) sigma = gsize / 6 s = 2 * sigma * 阅读全文
posted @ 2022-11-02 18:04 哦哟这个怎么搞 阅读(46) 评论(0) 推荐(0)

摘要: class GIoULoss(nn.Module): def __init__(self): super().__init__() def forward(self, A, B): num_bbox = A.size(0) * A.size(2) ax, ay, ar, ab = A[:, 0], 阅读全文
posted @ 2022-11-02 17:52 哦哟这个怎么搞 阅读(91) 评论(0) 推荐(0)

摘要: def smooth_l1_loss_modify(predict, target, mask, sigma=3): # predict: bx2x96x128 # target : bx2x96x128 # mask : bx2x96x128 num_object = mask.sum().ite 阅读全文
posted @ 2022-11-02 17:52 哦哟这个怎么搞 阅读(57) 评论(0) 推荐(0)

2022年10月30日

摘要: import torch import torch.nn as nn import torch.nn.functional as F import torchvision.datasets.mnist as mnist import torchvision.transforms as T impor 阅读全文
posted @ 2022-10-30 12:57 哦哟这个怎么搞 阅读(37) 评论(0) 推荐(0)

2022年10月29日

摘要: import torch import torch.nn as nn import numpy as np import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() s 阅读全文
posted @ 2022-10-29 08:24 哦哟这个怎么搞 阅读(63) 评论(0) 推荐(0)

2022年10月28日

摘要: class BatchNormalization(Module): def __init__(self, in_feature, momentum=0.9, eps=1e-8): self.mu = 0 self.var = 1 self.momentum = momentum self.eps = 阅读全文
posted @ 2022-10-28 09:52 哦哟这个怎么搞 阅读(22) 评论(0) 推荐(0)

2022年10月27日

摘要: https://aistudio.baidu.com/aistudio/projectdetail/3391734?channelType=0&channel=0 直接通过https://aistudio.baidu.com/aistudio/projectoverview/public?kw=%2 阅读全文
posted @ 2022-10-27 10:49 哦哟这个怎么搞 阅读(25) 评论(0) 推荐(0)

2022年10月25日

摘要: launch.json { // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configur 阅读全文
posted @ 2022-10-25 17:07 哦哟这个怎么搞 阅读(108) 评论(0) 推荐(0)

摘要: import cv2 dx0 = 0 dy0 = 0 isdown = False def callback(event, x, y, flags, userdata): global dx0,dy0,isdown color = 0, 255, 0 if flags & cv2.EVENT_FLA 阅读全文
posted @ 2022-10-25 10:59 哦哟这个怎么搞 阅读(37) 评论(0) 推荐(0)

2022年10月24日

摘要: class Dropout(Module): def __init__(self, prob_keep=0.5, inplace=True): super().__init__("Dropout") self.prob_keep = prob_keep self.inplace = inplace 阅读全文
posted @ 2022-10-24 13:33 哦哟这个怎么搞 阅读(39) 评论(0) 推荐(0)

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 35 下一页