Skip to content

Instantly share code, notes, and snippets.

View nanmi's full-sized avatar
😉
Atypical AI practitioners

nanmi

😉
Atypical AI practitioners
View GitHub Profile
@nanmi
nanmi / SearchThreadIdx.cpp
Last active January 13, 2021 08:26
SearchThreadIdx CUDA C++
//CUDA C++
//1D grid of 1D blocks
__device__ int getGlobalIdx_1D_1D()
{
return blockIdx.x*blockDim.x + threadIdx.x;
}
//1D grid of 2D blocks
__device__ int getGlobalIdx_1D_2D()
{
@nanmi
nanmi / ROS install.md
Last active June 15, 2021 04:47
ROS install

ROS系统安装

安装依赖

$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
$ sudo sh -c 'echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
$ sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 0xB01FA116
$ sudo apt-get update
$ sudo apt-get install ros-kinetic-desktop-full
@nanmi
nanmi / openmp note.md
Last active January 13, 2021 08:32
OpenMP Notes
apt-get install libomp-dev
//omp.cc
#include <iostream>
#include <omp.h>
int main()
{
@nanmi
nanmi / fun NLP.md
Last active April 1, 2025 10:51
fun NLP

The Most Powerful NLP-Weapon Arsenal

NLP民工的乐园: 几乎最全的中文NLP资源库

  • 词库
  • 工具包
  • 学习资料

在入门到熟悉NLP的过程中,用到了很多github上的包,遂整理了一下,分享在这里。

很多包非常有趣,值得收藏,满足大家的收集癖!

@nanmi
nanmi / model-convertor.md
Last active January 14, 2021 08:29
Model Convertor

The project will be updated continuously ......  

Pull requests are welcome!

Note: This is not one convertor for all frameworks, but a collection of different converters. Because github is an open source platform, I hope we can help each other here, gather everyone's strength.

Because of these different frameworks, the awesome convertors of deep learning models for different frameworks occur. It should be noted that I did not test all the converters, so I could not guarantee that each was available. But I also hope this convertor collection may help you!

@nanmi
nanmi / cortex.md
Created January 14, 2021 09:47
Deploy machine learning models in Cloud
@nanmi
nanmi / install nvidai driver.md
Last active May 13, 2022 07:25
Install nvidia driver

NV显卡驱动安装

卸载驱动

cd /usr/bin
./nvidia-uninstall
sudo apt-get --purge remove "*nvidia*"
sudo apt autoremove

# To remove CUDA Toolkit:
@nanmi
nanmi / param.md
Last active June 15, 2021 04:45
NCNN param & model file structure

NCNN的计算图和参数bin结构

参数和模型文件结构

网络参数

7767517
3 3
Input         input    0 1 data 0=4 1=4 2=1
@nanmi
nanmi / vulkan.md
Last active June 15, 2021 03:30
Install VulkanSDK
@nanmi
nanmi / fuse.md
Last active April 18, 2025 08:11
Fusing batch normalization and convolutionfusing batch normalization and convolution