摘要: ref: [1] https://www.codenong.com/12248132/ [2] https://vimsky.com/examples/detail/python-attribute-socket.SIO_KEEPALIVE_VALS.html def set_keep_alive( 阅读全文
posted @ 2021-12-01 13:33 wioponsen 阅读(1855) 评论(0) 推荐(1)
摘要: 问题描述: Could not load dynamic library 'libcusolver.so.10'; dlerror: libcusolver.so.10: cannot open shared object file: No such file or directory CUDA11 阅读全文
posted @ 2021-11-01 10:44 wioponsen 阅读(1291) 评论(0) 推荐(0)
摘要: 检查CUDA 和 cudnn版本是否正确且匹配 尝试在代码前增加以下代码可以解决(本人机器解决) ref: https://blog.csdn.net/qq_35407318/article/details/107822918 physical_devices = tf.config.experim 阅读全文
posted @ 2021-09-01 20:18 wioponsen 阅读(286) 评论(0) 推荐(0)
摘要: ref: https://stackoverflow.com/questions/53165418/order-of-sess-runop1-op2-in-tensorflow 一次sess.run() 更新一次图。与写fetch_list的顺序无关 对于数值多次变化存在于多条分支的情况,数值的更新 阅读全文
posted @ 2021-08-17 16:13 wioponsen 阅读(332) 评论(0) 推荐(0)
摘要: ref:https://blog.csdn.net/u014365862/article/details/79397919 import tensorflow as tf reader = tf.train.NewCheckpointReader("./model.ckpt") variables 阅读全文
posted @ 2021-07-26 16:07 wioponsen 阅读(102) 评论(0) 推荐(0)
摘要: 原因: 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 阅读(196) 评论(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 阅读(978) 评论(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 阅读(2062) 评论(0) 推荐(0)
摘要: ref: https://juejin.cn/post/6844903640377884679 https://blog.shenyuanluo.com/ColorConverter.html YUV **YUV:**是一种颜色空间,基于 YUV 的颜色编码是流媒体的常用编码方式,这种表达方式起初是 阅读全文
posted @ 2021-03-17 09:25 wioponsen 阅读(1704) 评论(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 阅读(1123) 评论(0) 推荐(0)