ICode9

精准搜索请尝试: 精确搜索
  • 经典数据集介绍-数据集制作-YOLOv5参数释义2022-01-17 22:32:03

    文章预览: VOC数据集介绍COCO数据集介绍制作数据集使用 RoboflowCollect ImagesCreate Labels 手动准备数据集 Create dataset.yamlYOLOv5-6.0**detect.py****train.py** 此笔记根据 小土堆教学视频所作笔记,内容详细,不枯燥,推荐给想学习目标检测的同学们,以下个人笔记供

  • TypeError: add() argument after * must be an iterable, not Alien2022-01-16 17:31:24

    在看《Python入门编程》的pygame小游戏《外星人来了》时,发现 TypeError: add() argument after * must be an iterable, not Alien 这个错误,网上找了半天没找出来,有的人说__init__拼写错了,有的说其他,但是仔细检查代码发现这个地方出错了 super().init() 错误中iterable是可迭

  • django 执行 python manage.py makemigrations 出现错误:TypeError: init() missing 1 required positional argum2022-01-15 20:33:45

    TypeError: __init__() missing 1 required positional argument: 'on_delete' 解决办法   TypeError: __init__() missing 1 required positional argument: 'on_delete' 解决办法   当执行 python manage.py makemigrations 出现错误:TypeError: init() missing 1 re

  • JS 加号(+)的作用 一元运算符2022-01-14 22:58:12

    在 JavaScript 中,加法的用法有两种情况: 1.数字求和,字符串拼接 如果都是数字的情况就会和数学的+号一样做一个求合的功能,如果其中有字符串类型就会变成字符串的拼接 let a = 990 let b = 89 let c = '90' console.log(a + b) // 数字1079 console.log(a +

  • pytorch python 常用命令2021-12-29 12:03:23

    import argparseparse = argparse.ArgumentParser()parse.add_argument("a", help="params means") # 不可缺省的输入,多个“”则按顺序读取,无需指定aparse.add_argument("-C", "--gc", default="count") # 带 - 或 -- 的参数可以不输入,其中- 是 --的缩写,

  • python UI自动化无界面运行2021-12-28 14:05:42

      python大家都知道可以使用selenium进行在Windows环境下运行,但每次都会进行弹框运行。但有时我们需要脚本在Linux环境进行运行或者不希望UI自动化频繁的弹框影响我们的操作,所有我们可以在编写UI自动化的时候选择有界面运行,好进行调试。后续自动化完成后我们切换为无界面运行,

  • 挑战学院科创项目——初尝yolov52021-12-27 23:34:26

    悲催的期末周终于过去,要继续做学院科技创新了,自己下载了个yolov5来玩一玩。 基本概念 单个物体的图片\(\Longrightarrow\)物体分类 多个物体\(\Longrightarrow\)目标检测 NMS(Non-Maximum Suppression)和IOU(Intersection over Union):目标检测时会在图像上生成很多的候选框,然

  • 2021SC@SDUSC山东大学软件学院软件工程应用与实践——yolov5代码分析——第五篇——train.py(1)2021-12-27 23:32:01

    目录 导入第三方库 parse_opt函数 导入第三方库 import argparse import logging import math import os import random import sys import time from copy import deepcopy from pathlib import Path import numpy as np import torch import torch.distributed as dist imp

  • selenium无界面模式启动2021-12-15 16:33:16

    from selenium import webdriver from selenium.webdriver.chrome.service import Service from msedge.selenium_tools import EdgeOptions from msedge.selenium_tools import Edge from selenium.webdriver.firefox.options import Options from selenium.webdriver import

  • vpp打包报错记录2021-12-09 18:02:52

            最近在 vpp 中构建 rpm 包时报了以下错误,vpp 版本是 18.07,有遇到相同问题的同学可以参考一下: $ make pkg-rpm .... 错误:This macro requires some arguments         使用的命令是:make pkg-rpm。这个问题应该和操作系统的版本有关,解决方法是修改 extras

  • tensorflow:Entity <bound method Dense AssertionError: Bad argument number for Name: 3, expecting 42021-12-08 22:03:06

    1.问题 现场: 使用 的TensorFlow1 来训练模型: WARNING:tensorflow:Entity <bound method Dense.call of <tensorflow.python.layers.core.Dense object at 0x7f320847ff90>> could not be transformed and will be executed as-is. Please report this to the AutgoGraph tea

  • C++ pass function as argument2021-12-08 13:01:13

    void retrieveTime5(char *dtValue); void showTime6(); void passFunc(void(*funcName)()); int main() { passFunc(&showTime6); return 0; } void passFunc(void(*funcName)()) { chrono::time_point<chrono::system_clock> startTime; chrono

  • linux的命令行解析参数之getopt_long函数2021-12-06 17:04:18

    前言 在linux中,经常需要各种命令,通常情况下都会带各种参数,而这些参数是如何解析的呢?通常使用GNU C提供的函数getopt、getopt_long、getopt_long_only函数来解析命令行参数。 一、关于命令行参数 命令行参数可以分为两类,一类是短选项,一类是长选项,短选项在参数前加一杠"-",长选项在参

  • Swin Transformer实战:使用 Swin Transformer实现图像分类。2021-12-06 13:00:41

    Swin Transformer简介 目标检测刷到58.7 AP! 实例分割刷到51.1 Mask AP! 语义分割在ADE20K上刷到53.5 mIoU! 今年,微软亚洲研究院的Swin Transformer又开启了吊打CNN的模式,在速度和精度上都有很大的提高。这篇文章带你实现Swin Transformer图像分类。 资料汇总 论文: https://arx

  • Python3--argparse2021-12-04 23:02:01

    概述 此模块是 Python 标准库中推荐的命令行解析模块。 使用场景:解析如下命令行 python3 prog.py --verbosity 1 模块详解 创建对象 argparse.ArgumentParser() 为创建对象 import argparse parser = argparse.ArgumentParser() parser.add_argument("echo") args = parser.parse

  • java Math.pow2021-11-27 08:02:12

    Math.pow /** * Returns the value of the first argument raised to the power of the * second argument. Special cases: * * <ul><li>If the second argument is positive or negative zero, then the * result is 1.0. * <

  • oracle修改用户密码的方法2021-11-19 13:04:31

    oracle修改用户密码的方法                  http://blog.itpub.net/69902769/viewspace-2646974/ Oracle用户名及默认密码  修改oracle用户的密码有以下方法: 普通用户   (1)通过alter user语法来进行修改 ,这也是最常见的方式: (2) 第二种方式,是通过password命令来修

  • 大爽Python入门教程 4-3 函数传参 形参、实参 default、*args、**kwargs2021-11-18 10:03:10

    大爽Python入门公开课教案 点击查看教程总目录 1 回顾参数 先来熟悉下参数,参数在函数头定义。 回顾一下,前两节定义了一些函数的函数头, 例如 def calculate_sum(n): def show_course_average(course_name) 这些函数是需要传参的, n是函数calculate_sum需要的参数。 course_name

  • selenium2021-11-17 16:05:55

    #!encoding=utf-8 from lxml import etree from selenium import webdriver options = webdriver.ChromeOptions() options.add_argument('--headless') options.add_argument( "User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.3

  • 记一下mac m1上使用selenium的场景2021-11-12 17:03:46

    已经有几年不做爬虫了 ,今天拿出了之前的一个项目。 闲来无事,就试试再mac m1上跑起来~,结果发现,都适配的很好了! 记一下我的步骤: 1:安装python包 # 我先创建了个虚拟环境 conda create -n selenium python=3.7 # 然后安装包 pip3 install selenium pip3 install lxml pip3 instal

  • C 语言的可变参数2021-11-06 14:00:49

    type va_arg( va_list arg_ptr, type ); void va_end( va_list arg_ptr ); void va_start( va_list arg_ptr, prev_param ); va_start sets arg_ptr to the first optional argument in the list of arguments passed to the function. The argument arg_ptr must have va

  • webpack 手写的loader引入报错 Module not found: Error: path argument is not a string2021-11-03 19:00:44

    自定义的loader不能通过 类似于以下这种方式引入 const myLessLoader = require('./loader/my-less-loader');   需要通过以下方式引入使用 path.resolve('./loader/my-less-loader.js')   附: rules配置代码 module: { rules: [ { t

  • selenium2021-10-30 18:35:11

    # 反检测 option = webdriver.ChromeOptions() option.add_experimental_option('excludeSwitches', ['enable-automation']) option.add_argument('--disable-blink-features=AutomationControlled') driver = webdriver.Chrome(executable_path=

  • bash脚本——将命令结果输出给变量,及需要注意的地方(“bad substitution”报错)2021-10-24 14:58:27

    今天练习写脚本的时候,遇到一个问题——怎么将命令输出的结果赋值给变量。 查阅之后发现有两种方法: NAME='command [option] argument' !!!这个已经不可以使用了!!! 以及 NAME=$(command [option] argument) 需要注意的是:实际测试之后发现在Ubuntu 20.04.1 LTS上,第一个已经不可以

  • TypeError: load() missing 1 required positional argument: ‘Loader‘2021-10-22 14:32:06

    最近使用yaml.load()时报错 TypeError: load() missing 1 required positional argument: ‘Loader’ 记录原因: YAML 5.1版本后弃用了yaml.load(file)这个用法,因为觉得很不安全,5.1版本之后就修改了需要指定Loader,通过默认加载​​器(FullLoader)禁止执行任意函数,该load函数也变

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有