- 博客(424)
- 资源 (16)
- 收藏
- 关注

原创 Using Yolov8 segment ncnn model on Ubuntu18.04
convert yolov8 segment model to ncnn model and using c++ build test program.
2023-02-07 10:13:11
1119

原创 在Golang中如何用scrypt对敏感信息加密
0 依赖库mkdir -p $GOPATH/src/golang.org/x/cd $GOPATH/src/golang.org/x/git clone https://github.com/golang/crypto.git1 源码package mainimport ( "crypto/rand" "fmt" "golang.org/x/crypto/scrypt" "...
2019-04-04 14:29:58
3285

原创 Use rc.local to add run on startup in Ubuntu 16.04 LTS
1 Step by stepPut all your executing code in a separate text file with an arbitrary name such as foo.sh and save it in an arbitrary place like /home/tzx/go/src/foo/foo.sh.Add #!/bin/sh as first ...
2018-11-07 16:45:41
397
原创 Ubuntu20.04 convert yolo11n-seg.pt to yolo11n-seg.rknn and run demo on 3588.
【代码】Ubuntu20.04 convert yolo11n-seg.pt to yolo11n-seg.rknn and run demo on 3588.
2024-12-06 11:39:51
910
原创 Ollama +Docker+OpenWebUI
下载安装Docker,注册一个Docker账号。如有需要运行其他大语言模型,访问。如果要退出,使用以下命令。
2024-04-29 16:31:00
2641
原创 Ubuntu 20.04 LTS 在3588安卓主板上测试yolov8-1.0版本的yolov8n-seg模型
3588安卓主板如果要调用rknn模型,需要更新3588安卓主板内的 rknn_server 和 librknnrt.so 文件。
2024-04-17 17:48:15
1580
转载 Conda environment is not activated in Powershell on Windows 11
【代码】Conda environment is not activated in Powershell on Windows 11。
2024-04-12 10:47:10
306
原创 Label studio export deta YOLO dataset
【代码】Label studio export deta YOLO dataset。
2024-01-09 11:28:55
794
1
原创 Convert yolov8‐seg to ncnn model step by step
Convert yolov8‐seg to ncnn model step by step。
2023-10-23 19:35:04
460
原创 Ubuntu 如何卸载chrome apps, Kite, Jupyter Notebook
【代码】Ubuntu 如何卸载chrome apps, Kite, Jupyter Notebook。
2023-04-15 15:01:57
593
原创 Train yolov8 segment model based on custom dataset on Ubuntu 18.04
Train yolov8 segment model based on custom dataset on Ubuntu 18.04
2023-02-08 11:17:20
474
原创 Golang 判断当前时间为当天范围内时间
利用Golang中的time库实现当前时间是否为当天范围内时间的判断。package mainimport ( "fmt" "time")func main() { // format := "2006-01-02 15:04:05" t := time.Now() t_zero := time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 0, t.Location()) h, _ := time.ParseDuration("+24h")
2021-03-24 11:37:52
8425
原创 服务器cpu和内存使用情况,简单测试脚本
统计服务器的CPU和内存使用情况。#!/usr/bin/python3# -*- encoding:utf-8 -*-import osimport timeimport psutilfrom loguru import loggerdef cpu_mem_info(): """ :return cpu, mem """ used_cpu = psutil.cpu_percent(interval=1) mem_info = psutil.virtu
2021-03-02 14:45:41
867
原创 golang simplejson 学习
golang simplejson 学习1 源码2 输出3 参考1 源码package mainimport ( "encoding/json" "fmt" "reflect" "strconv" simplejson "github.com/bitly/go-simplejson")var jsonStr = `{ "msg" : "Success", "res...
2020-01-07 16:51:02
1892
原创 Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
1. 环境信息Ubuntu 18.04 LTSpython3.6tensorflow-gpu 1.15.0cuda 10.2cudnn 7.6.3keras 2.3.1Nvidia(wtf) ➜ efficientnet_wtf nvidia-smi Thu Oct 24 11:47:43 2019 +----------------------------...
2019-10-24 13:45:38
572
原创 Install OpenCV-Python on Ubuntu18.04
文章目录OpenCV-python1 Pip / Pip32 OpenCV3 ReferenceOpenCV-python1 Pip / Pip3$ sudo apt-get update && sudo apt-get upgrade$ sudo apt-get install wget git$ wget https://bootstrap.pypa.io/get-p...
2019-09-25 09:50:02
721
转载 机器学习和数据科学攻略
机器学习和数据科学攻略1 学习Python、数据科学工具和机器学习概念2 学习通过Pandas、Numpy和Matplotlib进行数据分析、操作和可视化3 借助 scikit-learn 学习机器学习4 学习深度学习神经网络5 其他课程和书籍6 答疑6.1 每一步需要多长时间?6.2 我在哪里可以学到这些技能?6.3 统计怎么办?数学怎么办?概率呢?6.4 证书?7 参考链接1 学习Pytho...
2019-09-16 15:14:12
462
原创 golang -- ioDecReader redeclared in this block
1 问题利用 govendor 来管理基于 gin 的golang web项目,我在用govendor remove移除不必要golang第三方库后,在项目根目录下运行go run main.go出现类似以下错误:ioDecReader redeclared in this block2 解决方法在项目根目录内运行以下命令修复:govendor sync3 参考govendor...
2019-08-07 15:08:58
585
原创 Ubuntu16.04 ImportError: No module named 'LanguageSelector.LanguageSelector'
解决方法sudo apt-get install language-selector-gnome --reinstallsudo apt-get install language-selector-common --reinstall参考链接language-selector-gnomelanguage-selector-common
2019-07-25 11:13:30
1478
原创 How to setup vimrc and YouCompleteMe on Ubuntu 16.04 LTS
文章目录1 Main command lines2 Reference1 Main command lines# setup vimrcgit clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtimesh ~/.vim_runtime/install_awesome_vimrc.sh# setup YouComple...
2019-04-24 14:06:47
257
原创 How to install YCM on Ubuntu16.04 LTS
文章目录1 Steps1.1 Setup Vundle1.2 Install Vundle1.3 Install YCM core1.3.1 setup languages u want1.3.2 main work2 Reference1 Steps1.1 Setup Vundlesudo apt-get updatesudo apt-get upgradesudo apt insta...
2019-04-24 11:57:30
411
原创 jdk8 is not installed error
1. jdk-8-is-not-installed-error-404-not-foundjdk-8-is-not-installed-error-404-not-found2. Checksumhttps://www.oracle.com/webfolder/s/digest/8u211checksum.html8u2113. Downloadhttps://www.oracle.c...
2019-04-18 09:36:17
873
原创 How to install Postman native app in Ubuntu 16.04
1 安装1.1 创建命令行启动postman.wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gzsudo tar -xzf postman.tar.gz -C /optrm postman.tar.gzsudo ln -s /opt/Postman/Postman /usr/bin/postman1.2...
2019-03-01 09:51:50
360
原创 Linux 系统中,查看指定文件夹内各个子文件夹内的文件数量
count.sh#!/bin/shnumOfArgs=$#if [ $numOfArgs -ne 1 ]; then echo -e "Usage: \nbash $0 dirForCount" exit -1fi# argsROOTDIR=$1# core partfind $ROOTDIR -maxdepth 1 -type d | sort | whil...
2018-12-28 16:07:03
590
原创 Golang iota
Codespackage mainimport "fmt"type color byteconst ( black color = iota red blue)func test(c color) { fmt.Println(c)}func main() { const ( x = iota // 0 ...
2018-08-02 15:15:12
1673
原创 TensorFlow--MNIST
1 RequirementPython 3.5TensorFlow 1.4.02 Source code2.1 layers.pyimport tensorflow as tfdef weight_variable(shape): initial = tf.truncated_normal(shape, stddev=0.1) return ...
2018-07-10 18:47:54
421
原创 Installing CUDA 8 on Ubuntu 16: Unable to locate package cuda
Solution$ sudo vim /etc/apt/sources.list.d/cuda-repo-8-0-local-ga2.list==>deb file:///var/cuda-repo-8-0-local-ga2 /ReferenceInstalling CUDA 8 on Ubuntu 16: Unable to locate package cuda
2018-07-03 10:37:27
3148
原创 import debian.deb822 ImportError: No module named 'debian'
Solutionsudo apt-get remove update-notifier-common flashplugin-installerReferenceapt-get broken: No module named debian.deb822
2018-07-03 10:13:12
2837
2
原创 UseOpenCVByCpp
Use OpenCV by cpp in androidThis repo introduce how to use opencv cpp file in android.1 RequiresAndroid Studio 3.1.3opencv-3.4.1-android-sdk.zip2 Steps2.1 Create UseOpenCVByCPP ...
2018-06-27 18:09:01
1259
原创 Golang go-simplejson
Source codego-simplejsona Go package to interact with arbitrary JSON.Installgo get -u github.com/bitly/go-simplejsonImportimport "github.com/bitly/go-simplejson"Demopackage mainimp...
2018-03-26 14:38:46
2781
原创 yolo-voc.2.0.cfg 参数解析
一、参数解析[net]batch=64 # number of images pushed with a forward pass through the networksubdivisions=8 # 源码中的图片数量int imgs = net.batch * net.subdivisions * ngpus,按subdivisions大小分批进行训练 hei
2018-02-06 12:11:11
2202
转载 Ubuntu 16.04 “Kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(0,0)”
转自:https://thomasmodeneis.wordpress.com/2017/05/12/how-to-restore-ubuntu-16-04-kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block00/How to restore Ubuntu 16.04 “Kernel panic –
2018-01-27 09:53:22
28887
5
原创 OpenCV 旋转矩形设置为Mask
利用OpenCV实现图像中旋转矩形区域设置为Mask掩膜。实现函数如下所示:void setPixelValueByContours(CvRect& bndRect, CvSeq*& contour, IplImage*& dst){ int rectx = bndRect.x; int recty = bndRect.y; int rectw = rectx +
2018-01-09 16:54:54
2224
2
原创 Python2.7 unicode encoding gbk error
最近因为需要用python抓取网页的信息,遇到了python中最头痛的字符编码问题。伪Unicode字符串: u'\xe6\x97\xa0\xe7\xba\xbfWLAN\xef\xbc\x9a'解决套路方法一In[2]: s = u'\xe6\x97\xa0\xe7\xba\xbfWLAN\xef\xbc\x9a'In[3]:print sæ— çº¿WLAN:In[4]: s.enco
2017-10-23 16:15:37
972
原创 Ubuntu 16.04 TensorFlow Servering
PrerequisitesBazelUsing Bazel custom APT repository (recommended)Install JDK 8 $ sudo apt-get install openjdk-8-jdkAdd Bazel distribution URI as a package source (one time setup)$ echo "deb [arch=
2017-10-11 12:03:06
2213
Source code of OpenCV By Example
2017-03-28
OpenCV By Example (OpenCV3)
2016-02-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人