10 2021 档案

摘要:克隆远程分支 git clone git@... 查看当前所在分支 git branch 切换到需要克隆的分支 git checkout branch_name 创建新分支并切换到新分支 git checkout -b new_branch_name 切换到指定分支,切换完可以用git branch 阅读全文
posted @ 2021-10-31 20:11 荒唐了年少 阅读(394) 评论(0) 推荐(0)
摘要:运行model,获得模型最终输出结果 """ 测试onnx文件,获取浮点模型输出 wangmaolin-1029 """ import onnxruntime import pdb import cv2 import numpy as np def test_seg(seg): print(seg. 阅读全文
posted @ 2021-10-31 20:09 荒唐了年少 阅读(3897) 评论(0) 推荐(0)
摘要:# 结果余弦相似度对比 import numpy as np import pdb def count_difference(groundtruth, inputs): statistical_method = { 'cosine_similarity': lambda X1, X2: np.sum 阅读全文
posted @ 2021-10-31 20:08 荒唐了年少 阅读(536) 评论(0) 推荐(0)
摘要:""" 输出热力图 fixedpoint_21.2/test_server/toHeatMap.py wangmaolin-1029 """ import cv2 import matplotlib.pyplot as plt import pdb import numpy as np if __n 阅读全文
posted @ 2021-10-31 20:07 荒唐了年少 阅读(98) 评论(0) 推荐(0)
摘要:Interpreter 解析器 给定一个语言,定义它的文法的一种表示,并定义一种解释器,这个解释器使用该表示来解释语言中的句子。 解决什么问题 在软件构建过程中,如果某一特定领域的问题比较复杂,类似的结构不断重复出现,如果使用普通的编程方式来实现将面临非常频繁的变化。 在这种情况下,将特定领域的问题 阅读全文
posted @ 2021-10-07 16:12 荒唐了年少 阅读(58) 评论(0) 推荐(0)
摘要:#记录一个bash脚本中使用EOF遇到的问题 下面是我最初的代码 #!/bin/bash #Author: wangml #Created Time: #Script Description: 监控一个服务端口 # 监控方法 # 通过查看systemct1 service 服务启动状态 # lsof 阅读全文
posted @ 2021-10-05 15:40 荒唐了年少 阅读(1535) 评论(0) 推荐(1)
摘要:Command 命令模式 将一个请求(行为)封装为一个对象,从而使你可用不同的请求对客户进行参数化;对请求排队或记录请求日志,以及支持可撤销的操作。 解决什么问题 在软件构建过程中,“行为请求者”与“行为实现者”通常呈现一种“紧耦合”。但在某些场合——比如需要对行为进行”记录、撤销/重做(undo/ 阅读全文
posted @ 2021-10-05 10:18 荒唐了年少 阅读(75) 评论(0) 推荐(0)