![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
学习新知识
DYF-AI
OCR、NLP信息抽取
展开
-
numpy transpose
import numpy as nparr = np.arange(108).reshape((6, 6, 3))print('arr:', arr)print('arr shape:', arr.shape)arr_tras = arr.transpose((2, 0, 1))print('arr_tras', arr_tras)print('arr_tras shape', arr_tras.shape)arr: [[[ 0 1 2] [ 3 4 5] [原创 2021-02-08 18:27:00 · 65 阅读 · 0 评论 -
狂神说docker 常用命令笔记
Docker的常用命令1. 帮助命令docker version # 显示docker的版本信息docker info # 显示docker的系统信息,包括镜像和容器的数量docker 命令 --help # 帮助命令帮助文档的地址: https://docs.docker.com/engine/reference/commandline/docker/2. 镜像指令2.1 docker images 查看所有本地的主机上的镜像[root@abc123 /]# dock原创 2021-01-28 18:14:41 · 290 阅读 · 0 评论 -
由浅入深第一个CMakeLists.txt
文件treeroot@DYF:/mnt/g/src/C++/C-plus-study/ObjectOriented_chapter9/Constructor_1002# tree.├── CMakeLists.txt├── Person.h└── main.cpp编写最简单的CMakeLists.txt```cpp# specify cmake minimum versioncmake_minimum_required(VERSION 2.6)# specify source fil原创 2021-01-26 00:05:32 · 132 阅读 · 0 评论 -
Linux-Ubuntu更改镜像源
1、打开/etc/apt/sources.listvi /etc/apt/sources.list2、更改镜像源清华镜像源:deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiversedeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiver原创 2021-01-25 23:48:59 · 170 阅读 · 0 评论 -
openVino安装流程 Linux-centos
openVino安装流程 Linux-centos参考:1. openvino官网安装教程2. openvino中文社区1. 下载openVino套件(1) openvino download l_openvino_toolkit_p_2021.2.185.tgz(2) 解压tar -zxvf l_openvino_toolkit_p_2021.2.185.tgzcd l_openvino_toolkit_p_2021.2.185(3) 安装install_GUI.sh: GUI界面安原创 2021-01-20 23:58:45 · 1285 阅读 · 0 评论 -
WSL子系统迁移出C盘
1、下载辅助工具https://luyanan.com/article/info/195780772321922、解压3、进入解压文件夹(base) PS D:\360极速浏览器下载\LxRunOffline-v3.5.0-mingw> ./LxRunOffline.exe listUbuntu-20.04(base) PS D:\360极速浏览器下载\LxRunOffline-v3.5.0-mingw> ./LxRunOffline.exe move -n Ubuntu-20.0原创 2020-12-19 00:29:54 · 1082 阅读 · 1 评论 -
常用的指令(更新中)
1、python/usr/python3.7/bin/python3.7 -m pip list原创 2020-12-16 18:15:23 · 415 阅读 · 1 评论 -
Linux下编译C++
Linux下编译C++g++ hello.cpp -o hello原创 2020-12-08 10:52:10 · 190 阅读 · 0 评论 -
C++标准模板库学习-vector
C++标准模板库一、序列容器STL提供了很多容器,每个容器提供一组操作行为。序列容器(sequence)只提供插入功能,其中的元素都是有序的,但并未排序。序列容器包括vector向量、deque双端队列和list双向串行。1、vector模板vector是一种随机访问的数组类型,提供了对数组的快速、随机访问,以及在序列尾部快速、随机的插入和删除操作。大小可变,在需要是可以改变其大小。std::vector<type> name;(1) 初始化具有size元素个数的vector对象原创 2020-12-06 11:53:56 · 182 阅读 · 0 评论 -
C++编译和使用.so动态链接库(二)
// sum.h#include <iostream>int sum(int a, int b){ return a+b;}// test.cpp#include <iostream>#include "sum.h"using namespace std;int main(){ int a, b; cin>>a>>b; cout<<sum(a,b)<<"\n"; ret原创 2020-12-04 20:06:46 · 321 阅读 · 1 评论 -
C++编译和使用.so动态链接库(一)
1. 动态链接库.so的编译下面通过一个例子来介绍如何生成一个动态库。这里有一个头文件:so_test.h,三个.c文件:test_a.c、test_b.c、test_c.c,我们将这几个文件编译成一个动态库:libtest.so// so_test.h#include <stdio.h>#include <stdlib.h>void test_a();void test_b();void test_c();// test_a.c#include "so_tes原创 2020-12-04 19:19:17 · 3611 阅读 · 0 评论 -
python 异常处理
1、语法:try:<语句> #运行别的代码except <名字>:<语句> #如果在try部份引发了'name'异常except <名字>,<数据>:<语句> #如果引发了'name'异常,获得附加的数据else:<语句> #如果没有异常发生2、实例1#!/usr/bin/python# -*- coding: UTF-8 -*-try:原创 2020-11-21 10:49:27 · 59 阅读 · 0 评论 -
pytorch TensorRT 官方例子
1、common.pyfrom itertools import chainimport argparseimport osimport pycuda.driver as cudaimport pycuda.autoinitimport numpy as npimport tensorrt as trttry: # Sometimes python2 does not understand FileNotFoundError FileNotFoundErrorexce原创 2020-11-21 10:28:14 · 659 阅读 · 0 评论 -
在列表中,加入字典
import randomimport numpy as npA = ['AS', 'SD', 'SC']B = ['aa', 'bb', 'cc']cast_list = []for i in range(2): temp = {} temp['A'] = random.choice(A) temp['B'] = random.choice(B) temp['C'] = np.random.randint(25, 50) cast_list.a原创 2020-08-17 17:58:09 · 2535 阅读 · 0 评论 -
转载:python:__getitem__方法详解
添加链接描述转载 2020-08-09 10:35:45 · 381 阅读 · 0 评论 -
[链接]Typora 的入门使用教程
https://blog.csdn.net/qq_43537187/article/details/102727211?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.non转载 2020-06-24 19:02:14 · 676 阅读 · 0 评论 -
ModuleNotFoundError: No module named X X is not a package
ModuleNotFoundError: No module named ‘XXX’; ‘XXX’ is not a package原因:XXX文件夹名字和XXX.py,名字重复原创 2020-06-13 23:20:40 · 484 阅读 · 1 评论 -
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 736 and 129
不同数据集,有些图片是单通道。要的是多通道,故报错使用DataLoader加载图像,这些图像中的一些具有3个通道(彩色图像),而其他图像可能具有单个通道(BW图像),由于dim1的尺寸不同,因此无法将它们连接成批次。RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 736 and 1296 in dimension 2 at C:\w\1\s\tmp_conda_3.7_055原创 2020-06-04 23:34:48 · 476 阅读 · 0 评论 -
使用cv2绘制bbox
img=np.zeros((300,400,3),np.uint8)bbox = [[ 200.51428571, 160.03305785], [ 58.17723214, 160.03305785], [ 58.17723214, 210.6446281 ], [ 200.51428571, 210.6446281 ]]bbox = np.array(bbox).astype(np.int) # 转为整数print('bbox:', bbo原创 2020-06-02 00:23:42 · 1540 阅读 · 0 评论 -
翻译CTPN:Detecting Text in Natural Image with Connectionist Text Proposal Network
Detecting Text in Natural Image with Connectionist Text Proposal Network使用Connectionist文本提议网络检测自然图像中的文本Abstract. We propose a novel Connectionist Text Proposal Network (CTPN) that accurately lo...原创 2020-04-14 21:56:55 · 577 阅读 · 0 评论 -
论文翻译:基于端到端的可训练神经网络基于图像的序列识别及其在场景文本识别中的应用
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition基于端到端的可训练神经网络基于图像的序列识别及其在场景文本识别中的应用AbstractImage-based sequence recogn...原创 2020-04-12 15:58:47 · 2250 阅读 · 1 评论 -
【转载】理解“回调函数”
回调函数:A callback is a function that is passed as an argument to another function and is executed after its parent function has completed。字面上的理解,回调函数就是一个参数,将这个函数作为参数传到另一个函数里面,当那个函数执行完之后,再执行传进去的这个函数。...转载 2020-03-21 17:45:06 · 115 阅读 · 0 评论