按类别查询搜索结果
关于关键词 的检测结果,共 1131
专注的阿熊 | 2022-08-16 13:54:29 | 阅读(400) | 评论(0)
import turtleimport time# 清屏函数def clear_all():    turtle.penup()    turtle.goto(0, 0)    turtle.color('white')    turtle.pensize(800)    turtle.pendown() ...【阅读全文】
专注的阿熊 | 2022-08-02 17:18:58 | 阅读(770) | 评论(0)
if __name__ == '__main__':"""    opt模型主要参数解析:    --weights:初始化的权重文件的路径地址    --cfg:模型yaml文件的路径地址    --data:数据yaml文件的路径地址    --hyp:...【阅读全文】
老男孩IT教育机构 | 2022-08-02 15:26:28 | 阅读(430) | 评论(0)
在Python中,注释方式大致分为两种:单行注释和多行注释,#表示单行注释,'''或"""表示多行注释,接下来我们通过这篇文章为大家详细的讲解一下。【阅读全文】
【Python/Ruby】 如何添
老男孩IT教育机构 | 2022-07-11 15:26:37 | 阅读(470) | 评论(0)
注释就是对代码的解释和说明,其目的是让人们能够更加轻松地了解代码;此外,注释只是为了提高可读性,不会被计算机编译。在任何编程语言中都少不了注释,Python也不例外,那么Python如何添加注释?小编通过本篇文章为大家介绍一下。【阅读全文】
【Python/Ruby】 深入了解神经
墨羽听风 | 2022-07-08 10:59:01 | 阅读(240) | 评论(0)
本章将介绍用于解决实际问题的深度学习架构的不同模块。前一章使用PyTorch的低级操作构建了如网络架构、损失函数和优化器这些模块。本章将介绍用于解决真实问题的神经网络的一些重要组件,以及PyTorch如何通过提供大量高级函数来抽象出复杂度。本章还将介绍用于解决真实问题的算法,如回归、二分类、多类别分类等。【阅读全文】
专注的阿熊 | 2022-06-14 17:18:05 | 阅读(1520) | 评论(0)
if __name__ == '__main__':"""    opt模型主要参数解析:    --weights:初始化的权重文件的路径地址    --cfg:模型yaml文件的路径地址    --data:数据yaml文件的路径地址    --hyp:...【阅读全文】
专注的阿熊 | 2022-05-19 12:29:48 | 阅读(1250) | 评论(0)
import osfrom PIL import Image# 源目录# MyPath = 'E:/play/FaceMask_CelebA-master/facemask_image/'MyPath = 'E:/play/FaceMask_CelebA-master/save/masks/'# 输出目录OutPath = 'E:/play/FaceMask_CelebA-master/save/Binarization/'def processImage(filesoure, destsoure, name, imgt...【阅读全文】
专注的阿熊 | 2022-05-18 14:03:09 | 阅读(640) | 评论(0)
import pygameimport random# !/usr/bin/env python3# -*- coding: utf-8 -*-# @Date  : 2018/10/23import numpy as npimport randomimport pygamedef path(H, T, t0):    # H是我们测试模型的身高    listy = []  ...【阅读全文】
专注的阿熊 | 2022-05-11 17:19:22 | 阅读(1220) | 评论(0)
n = 1    start = 1    end = 2    temp = 1    while n < width - 2:        n += 1        if (white[n] if arg else bl...【阅读全文】
专注的阿熊 | 2022-04-26 17:38:17 | 阅读(1390) | 评论(0)
mulpicplus = "3"     #1 for normal,2 for 4pic plus,3 for 9pic plus and so on        assert(int(mulpicplus)>=1)        if mulpicplus == "1":        ...【阅读全文】
专注的阿熊 | 2022-04-22 00:01:13 | 阅读(1120) | 评论(0)
# -*- coding: utf-8 -*-# @Modified by: Ruihao# @ProjectName:yolov5-pyqt5import sysfrom datetime import datetimefrom PyQt5 import QtWidgetsfrom PyQt5.QtWidgets import *from utils.id_utils import get_id_info,sava_id_info # 账号信息工具函数from lib.share import shareI...【阅读全文】
专注的阿熊 | 2022-04-17 19:50:01 | 阅读(530) | 评论(0)
# -*- coding: utf-8 -*-import cv2import dlibimport numpy as np detector =dlib.get_frontal_face_detector()  # dlib的正向人脸检测器predictor = dlib.shape_predictor(r'shape_predictor_68_face_landmarks.dat')  # dlib的人脸形状检测器def get_image_size(image):&...【阅读全文】
hsq863 | 2022-04-12 08:29:20 | 阅读(1310) | 评论(0)
老男孩IT教育机构 | 2022-02-22 15:32:30 | 阅读(500) | 评论(0)
对于初学编程,或者想要转行加入到IT行业的人来说,总是面对选择的问题,到底是选择Python、Java还是C语言呢?哪个好找工作?哪个发展前景好呢?今天小编就为大家解决一下你所疑惑的问题吧。【阅读全文】
专注的阿熊 | 2022-01-19 17:17:51 | 阅读(1330) | 评论(0)
import torchfrom torch import nnclass SiLU(nn.Module):    @staticmethod    def forward(x):        return x * torch.sigmoid(x)def get_activation(name="silu", inplace=True):   &...【阅读全文】
专注的阿熊 | 2022-01-13 17:25:06 | 阅读(1290) | 评论(0)
import torchimport torch.nn as nnimport torch.nn.functional as Fimport numpy as npimport gymimport time#####################  hyper parameters  ####################EPISODES = 200EP_STEPS = 200LR_ACTOR = 0.001LR_CRITIC = 0.002GAMMA = 0.9TAU ...【阅读全文】
【Python/Ruby】 号处理与卷积
wwm | 2022-01-12 09:25:16 | 阅读(880) | 评论(0)
专注的阿熊 | 2021-12-28 17:19:21 | 阅读(720) | 评论(0)
<!--html声明--><!DOCTYPE html><!--HTML标签--><html lang="en"><!--head标签,主要是设置显示在网页标签页的标题等属性--><head>    <!--设置网页标题以及字符集格式,这里设置的字符集格式为utf-8-->    <meta charset="UTF-8">  ...【阅读全文】
专注的阿熊 | 2021-12-16 12:08:10 | 阅读(870) | 评论(0)
import randomimport matplotlib.pyplot as plt# ER随机网络ER = [[]],# BA无标度网络BA = [[]]# ER网络感染的情况,S表示为健康,I表示已感染,R表示已康复ER_SIR = []BA_SIR = []# 用于记录每日数据的数组slist = []ilist = []rlist = []# 生成ER随机网络,n表示点...【阅读全文】
专注的阿熊 | 2021-12-13 17:04:10 | 阅读(820) | 评论(0)
"""orginal from :https://github.com/graykode/nlp-tutorial/tree/master/5-2.BERT"""import mathimport refrom random import *import numpy as npimport torchimport torch.nn as nnimport torch.optim as optim# 数据预处理def make_batch():   ...【阅读全文】