<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[shonmark的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/shonmark</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; shonmark]]></copyright><item><title><![CDATA[通过clangformat进行设置时出现错误]]></title><link>https://blog.csdn.net/shonmark/article/details/134849122</link><guid>https://blog.csdn.net/shonmark/article/details/134849122</guid><author>shonmark</author><pubDate>Thu, 07 Dec 2023 10:33:02 +0800</pubDate><description><![CDATA[原因：clang检查时，不符合.clang文件的格式要求。解决方法：可以在工具->选项->文本编辑器->c/c++格式设置内将“启用ClangFoemat支持”关闭。]]></description><category></category></item><item><title><![CDATA[Tx2 NX编译Halide13.0.1]]></title><link>https://blog.csdn.net/shonmark/article/details/121607511</link><guid>https://blog.csdn.net/shonmark/article/details/121607511</guid><author>shonmark</author><pubDate>Mon, 29 Nov 2021 13:20:13 +0800</pubDate><description><![CDATA[1，安装依赖：llvm13（Release LLVM 13.0.0 · llvm/llvm-project · GitHub），

升级cmake到3.22.0.

下载依赖库：http://ports.ubuntu.com/ubuntu-ports/pool/main/n/ncurses/libtinfo-dev_6.1-1ubuntu1.18.04_arm64.deb下载后安装sudo dpkg -i libtinfo-dev_6.1-1ubuntu1.18.04_arm64.deb

2，配置环境su]]></description><category></category></item><item><title><![CDATA[opencv win10下源码编译]]></title><link>https://blog.csdn.net/shonmark/article/details/121395905</link><guid>https://blog.csdn.net/shonmark/article/details/121395905</guid><author>shonmark</author><pubDate>Thu, 18 Nov 2021 11:09:31 +0800</pubDate><description><![CDATA[1，首先下载源码，可以是安装版或解压版链接：https://github.com/opencv/opencv/releases。本文使用3.3.0版本，cmake3.21.0。

2，打开cmake的GUI界面，输入源码位置和编译的位置。第一次还需选择一下，vs的版本和编译成多少位。



3， 点configure之后，可能会报错，我遇到的是下载问题，打开CMakeDownloadLog.txt查看，一般是4个文件需要下载，放的对应位置log也有，容易解决。

4，如果不需要编译python版，取消这个，]]></description><category></category></item><item><title><![CDATA[OpenCV Error: Assertion failed (_dst.fixedType()) in cv::convertPointsHomogeneous, file]]></title><link>https://blog.csdn.net/shonmark/article/details/121395274</link><guid>https://blog.csdn.net/shonmark/article/details/121395274</guid><author>shonmark</author><pubDate>Thu, 18 Nov 2021 10:52:12 +0800</pubDate><description><![CDATA[opencv3.3.0 cvCalibrateCamera2报错解决]]></description><category></category></item><item><title><![CDATA[dd命令使用体会]]></title><link>https://blog.csdn.net/shonmark/article/details/120366428</link><guid>https://blog.csdn.net/shonmark/article/details/120366428</guid><author>shonmark</author><pubDate>Sat, 18 Sep 2021 14:59:35 +0800</pubDate><description><![CDATA[正式版的tx2 nx只有16G的emmc内存，装完系统和cuda等环境后几乎没有空间了，公司目前使用的载板有外部空间128G，生产时就需要系统的迁移。最近在使用dd命令对jetson tx2 nx进行系统迁移，对dd有了一些了解。首先，dd命令执行的是拷贝过程，这里的拷贝的不是文件意义上拷贝，而是基于物理存储的拷贝。我理解为把物理地址上的东西进行拷贝，并不会关系物理地址上是否有逻辑上的文件。

此外，dd命令只会简单的按块进行拷贝，并不会事先查看存储介质空间是否够用，直到目标空间不够才会报错。

下面介绍几]]></description><category></category></item><item><title><![CDATA[jetson 系统Nano/NX/TX2 NX计算边缘端设备峰值能力和带宽（deviceQuery和BandwidthTest）]]></title><link>https://blog.csdn.net/shonmark/article/details/119323292</link><guid>https://blog.csdn.net/shonmark/article/details/119323292</guid><author>shonmark</author><pubDate>Mon, 02 Aug 2021 13:37:18 +0800</pubDate><description><![CDATA[原文：https://forums.developer.nvidia.com/t/find-the-gpu-information/182768

进入文件夹并编译即可，注意可能存在cuda和cuda-10.2两个文件夹，需要选择10.2的文件夹。使用make编译时，会对所有算力进行编译。

$ cd /usr/local/cuda-10.2/samples/1_Utilities/deviceQuery

$ sudo make

$ ./deviceQuery



$ cd /usr/local/cu]]></description><category></category></item><item><title><![CDATA[Nsight compute远程连接不上]]></title><link>https://blog.csdn.net/shonmark/article/details/119185468</link><guid>https://blog.csdn.net/shonmark/article/details/119185468</guid><author>shonmark</author><pubDate>Wed, 28 Jul 2021 17:24:25 +0800</pubDate><description><![CDATA[显示connection failed



关闭clash，vpn。


]]></description><category></category></item><item><title><![CDATA[mysql安装到启动服务无响应，解压版启动服务报1067错误]]></title><link>https://blog.csdn.net/shonmark/article/details/103268963</link><guid>https://blog.csdn.net/shonmark/article/details/103268963</guid><author>shonmark</author><pubDate>Wed, 27 Nov 2019 09:00:49 +0800</pubDate><description><![CDATA[如果解压版两条路径配置正确，是否以前安装过安装版mysql，默认安装在c盘，卸载不完全。

注册表HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL删除，

C:\ProgramData\MySQL 管理员身份删除，即可。
...]]></description><category></category></item><item><title><![CDATA[keras导入模型预测时报错ValueError: Error when checking input: expected conv2d_1_input to have 4 dimensions, b]]></title><link>https://blog.csdn.net/shonmark/article/details/90142633</link><guid>https://blog.csdn.net/shonmark/article/details/90142633</guid><author>shonmark</author><pubDate>Sun, 12 May 2019 17:23:06 +0800</pubDate><description><![CDATA[ValueError: Error when checking input: expected conv2d_1_input to have 4 dimensions, but got array with shape (X, X, X)

解决方法：原因是输入的第一个dimension是bachsize，所以需要将数据reshape为(1，X, X, X)。
...]]></description><category></category></item><item><title><![CDATA[python实现简单的switch功能]]></title><link>https://blog.csdn.net/shonmark/article/details/78878359</link><guid>https://blog.csdn.net/shonmark/article/details/78878359</guid><author>shonmark</author><pubDate>Sat, 23 Dec 2017 10:03:29 +0800</pubDate><description><![CDATA[官方原文：
def function_1(...):
    ...

functions = {'a': function_1,
             'b': function_2,
             'c': self.method_1, ...}

func = functions[value]
func()简单实现：
each = {
    0: 0,
    1000]]></description><category></category></item><item><title><![CDATA[phpmyadmin4.7.5安装连接mysql]]></title><link>https://blog.csdn.net/shonmark/article/details/78596443</link><guid>https://blog.csdn.net/shonmark/article/details/78596443</guid><author>shonmark</author><pubDate>Tue, 21 Nov 2017 20:39:20 +0800</pubDate><description><![CDATA[感谢网上的教程，把我一步步带入坑，真是坑爹啊。分享视频先
https://www.youtube.com/watch?v=hqfIksHKPPg

我的版本：php7 64位线程安全版 apache2.4 64位，phpmyadmin4.7.5-all-languages
我是64位强迫症，以前被tomcat32位报警告不兼容jdk 64位搞过就这样了。(;´༎ຶД༎
讲下注意点：
1]]></description><category></category></item><item><title><![CDATA[flask中报无法找到XX包的错]]></title><link>https://blog.csdn.net/shonmark/article/details/78494389</link><guid>https://blog.csdn.net/shonmark/article/details/78494389</guid><author>shonmark</author><pubDate>Thu, 09 Nov 2017 21:39:23 +0800</pubDate><description><![CDATA[当定义完__init__在views中需要导入__init__中的class或object时，如果在view开始时导入可能会报错。原因可能是__init__和views来回导入导致错误。百度和谷歌未找到解释。不过，我找到了解决方法，就是在路由函数中导入，而不是在开始。有种说法是在python2.7中不会报错。我觉得，既然python2.7必定会被淘汰。再在2.7环境下写代码可能就不合适了，这也是官]]></description><category></category></item><item><title><![CDATA[解压版软件小娜搜索不到问题的解决]]></title><link>https://blog.csdn.net/shonmark/article/details/78484336</link><guid>https://blog.csdn.net/shonmark/article/details/78484336</guid><author>shonmark</author><pubDate>Wed, 08 Nov 2017 22:46:35 +0800</pubDate><description><![CDATA[绿色版快捷方式复制一份到这里C:\ProgramData\Microsoft\Windows\Start Menu]]></description><category></category></item><item><title><![CDATA[win10完美解决快捷方式小箭头、虚框。]]></title><link>https://blog.csdn.net/shonmark/article/details/78484316</link><guid>https://blog.csdn.net/shonmark/article/details/78484316</guid><author>shonmark</author><pubDate>Wed, 08 Nov 2017 22:44:43 +0800</pubDate><description><![CDATA[新建  .bat   文件
写入

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%systemroot%\system32\imageres.dll,197"
 /t reg_sz /f
taskkill /f /im explo]]></description><category></category></item><item><title><![CDATA[flask结构化目录后如何运行manage]]></title><link>https://blog.csdn.net/shonmark/article/details/78477415</link><guid>https://blog.csdn.net/shonmark/article/details/78477415</guid><author>shonmark</author><pubDate>Wed, 08 Nov 2017 12:57:27 +0800</pubDate><description><![CDATA[flask目录化后可以通过运行python manage.py runserver以运行flask服务。也可以在pycharm中点击运行的下拉选项。

在Edit Confgurations 中给manage.py添加运行脚本：runserver即可]]></description><category></category></item><item><title><![CDATA[pymysql+Flask-SQLAlchemy连接mysql]]></title><link>https://blog.csdn.net/shonmark/article/details/78452215</link><guid>https://blog.csdn.net/shonmark/article/details/78452215</guid><author>shonmark</author><pubDate>Sun, 05 Nov 2017 20:45:42 +0800</pubDate><description><![CDATA[原来的

app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://username:password@localhost/db_name'
需要改为


app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://username:password@localhost/db_name'
否]]></description><category></category></item><item><title><![CDATA[pycharm代码规范]]></title><link>https://blog.csdn.net/shonmark/article/details/78449271</link><guid>https://blog.csdn.net/shonmark/article/details/78449271</guid><author>shonmark</author><pubDate>Sun, 05 Nov 2017 14:16:48 +0800</pubDate><description><![CDATA[在pycharm中写python代码时，官方建议是遵行PEP8规范 ，有时候写的不规范会有灰色的波浪线。用快捷键Ctrl+Alt+L可以自动规范代码。或点击Code--->Reformat Code。另外，点击右下角小医生图案把滑动条往前移动可以消除，但不治本。]]></description><category></category></item><item><title><![CDATA[win10解决pip安装慢的问题]]></title><link>https://blog.csdn.net/shonmark/article/details/78419614</link><guid>https://blog.csdn.net/shonmark/article/details/78419614</guid><author>shonmark</author><pubDate>Wed, 01 Nov 2017 22:28:56 +0800</pubDate><description><![CDATA[1.在c盘下文件框输入%APPDATA%
2.新建pip文件夹，文件夹下新建pip.ini文件，写入
[global]
timeout = 60
index-url = https://pypi.douban.com/simple



PS：

清华：https://pypi.tuna.tsinghua.edu.cn/simple

阿里云：http://mirrors.]]></description><category></category></item><item><title><![CDATA[python用函数声明类]]></title><link>https://blog.csdn.net/shonmark/article/details/78323675</link><guid>https://blog.csdn.net/shonmark/article/details/78323675</guid><author>shonmark</author><pubDate>Mon, 23 Oct 2017 21:32:21 +0800</pubDate><description><![CDATA[python中可以用class声明类，也可以通过以下方式声明类，其效果和类声明是一样的


#!/user/bin/env python
# -*- coding:utf-8 -*-
# python3.5
# @Time    : 2017/10/23 21:26
# @Author  : Shone
# @File    : test.py
def fuc(self):
    prin]]></description><category></category></item></channel></rss>