yaml-cpp按路径获取节点的方法
代码先丢在这,文字以后再补
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556static inline std::vector<std::string> stringSplit(const std::string &str, const char delimiter) { std::string tok; std::stringstream ss(str); std::vector<std::string> vec; while (std::getline(ss, tok, delimiter)) { vec.push_back(tok); } return vec;}static inline YAML::Node getNodeByPath ...
Android Kotlin使用gRPC
Android Kotlin使用gRPC记录
修改Project gradle kts
添加plugin
1id('com.google.protobuf') version '0.8.18'
添加dependencies
1234567implementation('io.grpc:grpc-protobuf:1.45.0')// gRPC请求依赖网络库,需指定netty或okhttpimplementation('io.grpc:grpc-okhttp:1.45.0')implementation("io.grpc:grpc-stub:1.45.0")implementation("io.grpc:grpc-kotlin-stub:1.2.1")implementation("com.google.protobuf:protobuf-kotlin:3.19.4")
添加protobuf block
123456789101112131 ...
Flutter调试问题Failed to create server socket
Flutter调试问题: SocketException: Failed to create server socket
有段时间没有用flutter,但是一直保持sdk更新。今天用的时候调试报Reason of Flutter error: SocketException: Failed to create server socket (OS Error: Failed to start accept), address = localhost, port = xxxx。
这个问题查了下,先是stackoverflow找到一个解决方案,要ipconfig查本机ip,然后再用实际ip启动:
1flutter run -d chrome --web-port=8080 --web-hostname= *the value of IPv4 Address*
但是没法在Android studio打断点debug。也查到说取消网卡绑定ipv6地址的,不过这个我没试。再试了把网卡ip改为127.0.0.1,也是可以启动的。与AS调试启动的不同只是在于,AS调试用的是localhost。
然后 ...
Training YOLO
Learning Deep Learning
趁2022春节假期,再深入了解一下DL。这次目标是Train个YOLOv3。
最开始从Yolo v1开始看,感觉没有压力。然后直接跳到Yolo v5,觉得多了很多新概念一时之间没法理解,什么spp,anchor box的,只能回过头去看v3,就是yolo作者自己的最后一版。
Roadmap如下
看懂Yolo网络结构
代码复现
用公开数据集train一个model
成功跑推理
实际上每个milestone都耗费不少时间。
原以为只要把网络变成代码,基本上这事就完了。但是实际上整个过程最花精力的不是弄懂网络,把它变成代码,而是计算anchor box,各个cell IoU等等步骤。特别是v2引入了一个Anchor Box概念,是个先从样本集取出所有bbox通过knn算出来的值,一开始也没找到太多资料讲清楚,还是靠看代码理解。
截止到春节假期结束,代码半写半抄的,应该是大致弄完了。但是实际上train并没有收敛,用笔记本的1060跑了10个epoch的voc数据集,看tensorboard的lost值,后面9个epoch基本上只是在震荡不再 ...
音频编码的比较
音频编码的比较
记录一下
卡片式风格App UI设计
卡片式风格设计
参考资料
收集了一些设计相关的资料,迟些整理。
UI卡片化设计,带你从零开始完全掌握
UE Design | 2021 Design Trends 卡片式设计及其设计原则
实用必收!如何建立一套UI设计规范?(附众多神器)
关于卡片设计、分割线、无框设计的思考
卡片式设计流行的秘密 — 看完这15个案例你就懂了!
参考设计
[Dribbble - Cate App]
Dribbble - 家具购物App
UI中国遇上卡片式设计–概念APP设计
UI设计系统
熊Logo
Figma community wire frames
https://dribbble.com/emirozedesign/collections/276216-wireframes
https://dribbble.com/shots/5458532/attachments/1181670?mode=media
站酷
搜索卡片式设计
其他
Figma中文社区
initial commit
第n次建blog。拟记录编程、设计、投资、生活等。第一步先把这个hexo弄好看点。
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start
Create a new post
1$ hexo new "My New Post"
More info: Writing
Run server
1$ hexo server
More info: Server
Generate static files
1$ hexo generate
More info: Generating
Deploy to remote sites
1$ hexo deploy
More info: Deployment