上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页
摘要: 转自:https://blog.csdn.net/water_Popcorn/article/details/101534108 方法一: import cv2 as cv import numpy as np # 像素取反 def get_img_info(img): height = img.s 阅读全文
posted @ 2020-02-25 15:26 Manuel 阅读(804) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/weixin_42388228/article/details/88235240 改变label颜色: colormap = label_colormap(255) lbl_pil.putpalette((colormap * 255).astype 阅读全文
posted @ 2020-02-21 12:58 Manuel 阅读(1342) 评论(0) 推荐(0) 编辑
摘要: 可能项目文件名中带有code或trace,改掉即可 阅读全文
posted @ 2020-02-19 12:04 Manuel 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 加一句 torch.backends.cudnn.enabled = False 不行再查看cuda、python、pytorch、cudnn的版本兼容问题 阅读全文
posted @ 2020-02-18 11:33 Manuel 阅读(1508) 评论(0) 推荐(0) 编辑
摘要: 转置卷积: blog.csdn.net/LoseInVain/article/details/81098502 阅读全文
posted @ 2020-02-13 20:58 Manuel 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 线性插值与双线性插值 线性插值就是两点式求函数方程再已知一点x求y 双线性插值以下: https://blog.csdn.net/liuweiyuxiang/article/details/86525249 插值的作用一般是resize,上采样 阅读全文
posted @ 2020-02-13 20:37 Manuel 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 冒泡排序:从第一个元素(或最后一个元素)向后一个元素(前一个元素)比较,比较大小换位,第二个元素与第三个元素比较... 1.第一轮比较的次数:数组的总长度-1 2.下一轮比上一轮比较的次数:少一次 选择排序:将第一个元素赋值 给 暂时最小值(中间值),将暂时最小值与后面元素依次比较,若比中间值小则赋 阅读全文
posted @ 2019-09-09 17:28 Manuel 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 数组的长度可以是变量; 1 阅读全文
posted @ 2019-09-08 15:03 Manuel 阅读(170) 评论(0) 推荐(0) 编辑
摘要: while循环: 先判断再执行 例:头文件“”一般是自己定义的,<>是C语言自带的; <>在系统目录下找 ""在当前目录下找 #include<iostream>#include "stdafx.h"#include "iostream"#include<string> using namespac 阅读全文
posted @ 2019-09-07 14:38 Manuel 阅读(237) 评论(0) 推荐(0) 编辑
摘要: cout << boolalpha将打印输出0转为false,1转为true 逻辑运算符: &&(与) 且 两个条件为真时结果为真 ||(或) 或 两个条件为真时结果为真 ! 非 取反 位运算符(二进制): & 按位与 同为1则为1 | 按位或 有一个为1则为1 ~ 按位非 取反(8位取反),负数二 阅读全文
posted @ 2019-09-07 11:25 Manuel 阅读(364) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页