摘要: 原因: tensorflow使用的转换规范和OpenCV使用的不一致,使用OpenCV的转换矩阵即可实现一致的转换结果。 def rgb_to_yuv(images): rgb_to_yuv_kernel = [[0.299, -0.169, 0.500], [0.587, -0.331, -0.4 阅读全文
posted @ 2021-06-04 15:14 wioponsen 阅读(167) 评论(0) 推荐(0) 编辑
摘要: ref: https://github.com/daquexian/onnx-simplifier/issues/94#issuecomment-706077511 run onnxsim with --skip-optimizer fuse_consecutive_concats example: 阅读全文
posted @ 2021-05-21 14:05 wioponsen 阅读(867) 评论(0) 推荐(0) 编辑
摘要: 申明:转载注明出处 https://www.cnblogs.com/wioponsen/p/14570312.html 方式一 使用torch.nn.functional.unfold def space_to_depth(in_tensor, down_scale): n, c, h, w = i 阅读全文
posted @ 2021-03-23 16:36 wioponsen 阅读(1689) 评论(0) 推荐(0) 编辑
摘要: ref: https://juejin.cn/post/6844903640377884679 https://blog.shenyuanluo.com/ColorConverter.html YUV **YUV:**是一种颜色空间,基于 YUV 的颜色编码是流媒体的常用编码方式,这种表达方式起初是 阅读全文
posted @ 2021-03-17 09:25 wioponsen 阅读(1364) 评论(0) 推荐(0) 编辑
摘要: ref: https://blog.csdn.net/weixin_38419133/article/details/98496722 NV21格式是安卓手机上普遍使用的图像格式。 NV12和NV21属于YUV420格式(每2x2四个Y,共用一组uv),是一种two-plane模式,即Y和UV分为两 阅读全文
posted @ 2021-03-15 16:04 wioponsen 阅读(802) 评论(0) 推荐(0) 编辑
摘要: 论文: https://arxiv.org/pdf/1804.02815.pdf 主页:http://mmlab.ie.cuhk.edu.hk/projects/SFTGAN/ 代码:https://github.com/xinntao/SFTGAN 贡献点: 提出了SFT层 In this pap 阅读全文
posted @ 2021-02-02 16:42 wioponsen 阅读(321) 评论(0) 推荐(0) 编辑
摘要: ref: https://linux.cn/article-5139-1.html dmidecode 最常用的选项就是用 -t 或者 --type 来限定关键字: bios, system, baseboard, chassis, processor, memory, cache, connect 阅读全文
posted @ 2021-02-02 13:17 wioponsen 阅读(364) 评论(0) 推荐(0) 编辑
摘要: #include <time.h> void get_time_str(char* name) { time_t timep; struct tm *p; time(&timep); p = gmtime(&timep); clock_t t = clock(); int ms = t * 1000 阅读全文
posted @ 2020-12-21 09:30 wioponsen 阅读(2525) 评论(0) 推荐(0) 编辑
摘要: 替换代码: import tensorflow as tf 修改为: import tensorflow.compat.v1 as tf tf.disable_v2_behavior() 阅读全文
posted @ 2020-11-20 16:56 wioponsen 阅读(714) 评论(0) 推荐(0) 编辑
摘要: 关于Wasserstein GAN的讲解,深入浅出,很棒,收藏! 【知乎】令人拍案叫绝的Wasserstein GAN 代码实现: https://github.com/martinarjovsky/WassersteinGAN 阅读全文
posted @ 2020-11-17 17:29 wioponsen 阅读(77) 评论(0) 推荐(0) 编辑