摘要: 1、情景 pytorch的模型,torch.jit.trace转换成pt文件 然后通过C++加载调用模型; 2、报错内容: terminate called after throwing an instance of 'std::runtime_error' what(): Input and hi 阅读全文
posted @ 2022-06-15 20:24 戒骄戒躁-沉淀积蓄 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 1.获取dmesg的时间戳 # dmesg [ 18.204448] Bluetooth: RFCOMM socket layer initialized [ 18.204452] Bluetooth: RFCOMM ver 1.11 2.时间戳表示的含义dmesg 日志中的“时间”(18.2044 阅读全文
posted @ 2021-11-18 14:58 戒骄戒躁-沉淀积蓄 阅读(721) 评论(0) 推荐(0) 编辑
摘要: 单例模式以及Python实现 单例模式 单例模式就是确保一个类只有一个实例.当你希望整个系统中,某个类只有一个实例时,单例模式就派上了用场.比如,某个服务器的配置信息存在在一个文件中,客户端通过AppConfig类来读取配置文件的信息.如果程序的运行的过程中,很多地方都会用到配置文件信息,则就需要创 阅读全文
posted @ 2021-06-10 16:11 戒骄戒躁-沉淀积蓄 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 1、常用命令 screen -S name #创建 screen -list # 展示 screen -ls # 展示 screen -r name # 恢复到窗口screen -d -r yourname -> 结束当前session并回到yourname这个session kill -9 窗口i 阅读全文
posted @ 2021-06-01 14:07 戒骄戒躁-沉淀积蓄 阅读(579) 评论(0) 推荐(0) 编辑
摘要: 1、Flask接收文件-图片、视频 from flask import Flask, jsonify, request import json import requests import os import base64 import tensorflow as tf basedir = os.p 阅读全文
posted @ 2021-05-21 10:06 戒骄戒躁-沉淀积蓄 阅读(1106) 评论(0) 推荐(0) 编辑
摘要: 为C盘下的system和config文件夹创建副本文件夹, -- 1.在pycharm中点击Help->edit custom properties,然后点击create,在新文件中输入以下内容: # custom PyCharm properties idea.config.path = E:/P 阅读全文
posted @ 2021-04-14 18:00 戒骄戒躁-沉淀积蓄 阅读(4814) 评论(0) 推荐(0) 编辑
摘要: 报错: File "/home/simon/anaconda3/lib/python3.7/site-packages/urllib3/contrib/socks.py", line 173, in __init__ "Unable to determine SOCKS version from % 阅读全文
posted @ 2021-03-09 11:21 戒骄戒躁-沉淀积蓄 阅读(577) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 1、查看已经安装的内核 dpkg --get-selections | grep linux dpkg --list | grep linux-headers dpkg --list | grep linux-image apt-get autoremove sudo apt-get 阅读全文
posted @ 2021-03-05 16:07 戒骄戒躁-沉淀积蓄 阅读(167) 评论(0) 推荐(0) 编辑
摘要: python argparse传入布尔参数false不生效 parser.add_argument("--preprocess", type=bool, default=True, help='run prepare_data or not') 上述代码,在运行是,无论脚本传入的参数是什么,最终得到 阅读全文
posted @ 2021-03-03 10:58 戒骄戒躁-沉淀积蓄 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1、cuda 版本查看 cat /usr/local/cuda/version.txt or nvcc -V 2、cudnn版本查看 cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2 阅读全文
posted @ 2021-02-10 11:15 戒骄戒躁-沉淀积蓄 阅读(619) 评论(0) 推荐(0) 编辑