Ivan

个人博客

[MySQL] MySQL备份与还原

备份单数据库mysqldump -u root -p dbname table1 table2 > backup.sql tabel1 table2 缺省则为备份整个数据库 多数据库mysqldump -u root -p --databases dbname1 dbname2 > backup.sql全部数据库mysqldump -u root -p -all-databases > backup.sql还原mysql -u root -p dbname < backup.sql 当出现ERROR at line : Unknown command ‘\’’错误,是由字符集编码导致的,加上–......

[JavaScript] Editor.md 图片复制粘贴拖拽js插件

IntroductionEditor.md富文本编辑器没有自带复制粘贴图片的功能,自己手写了个,支持复制粘贴、拖拽的方式插入编辑器中;并自动上传图片至博客后台的图床,省去了手动上传的麻烦。代码如下: function initPasteDragImg(Editor){ var doc = document.getElementById(Editor.id) doc.addEventListener('paste', function (event) { var items = (event.clipboardData || window.clipboa......

[C++] OpenGL Demo

opengl, glut

opengl-icgThis repo is an opengl demo of Intelligent Computer Graphics course.This scene contains five objects and corresponding operations, including scaling, rotating, and moving.项目地址:https://github.com/ivanwhaf/opengl-icg Usage run OpenGLDemo.exe directlysee readme.txt for more operation details ......

[机器学习] 自动驾驶AI小车

基于遗传算法优化神经网络

genetic-carSelf-learning car using genetic algorithm项目完整地址:genetic-car UsagePlease run manual version, do not run auto version, it has not been implemented! 1. Run program$ python genetic_car_manual.py 2. Select elites manuallyAfter each round, just click the blue cars who have Best performance, and......

[深度学习] Yolov1-pytorch

yolov1-pytorchThis repo is a pytorch implementation of yolov1.项目完整链接:yolov1-pytorch Deep Learning based yolov1 object detector, using Pytorch deep learning frameworkThis project can be also transplanted to other edge platforms like Raspberry PiPaper: https://arxiv.org/pdf/1506.02640.pdf DemoRun in ......

[软件安装] MySQL配置踩坑

重置密码vim /etc/my.cnf 加上一条: --skip-grant-tables保存并退出 mysql -u -p 直接敲回车不用密码直接进入 use mysqlupdate user set authentication_string=password('root') where user='root'; 修改root默认密码 外网访问1.配置防火墙,3306端口2.给mysql用户授权外网访问权限mysql -u root -pselect user,host from user;update user set host='%' where user='root'grant al......

[软件安装] Centos7安装python3

下载Python3wget https://www.python.org/ftp/python/3.7.8/Python-3.7.8.tar.xz 解压tar -xvJf Python-3.7.8.tar.xz 创建编译安装目录mkdir /usr/local/python3 编译安装cd Python-3.7.8 ./configure --prefix=/usr/local/python3 --enable-optimizations --with-ssl make && make install 修改软链接ln -s /usr/local/python3/bin/python3 /us......

[机器学习] NLNL: Negative Learning for Noisy Labels论文解读

0x01 Introduction 最近在做数据筛选方面的项目,看了些噪声方面的论文,今天就讲讲之前看到的一篇发表于ICCV2019上的关于Noisy Labels的论文《NLNL: Negative Learning for Noisy Labels》 论文地址:https://arxiv.org/pdf/1908.07387.pdf 这篇论文的核心思想是NL(Negative Learning)也就是利用complementary label(互补标签)对模型进行训练从而提升噪声鲁棒性 0x02 Negative Learning 对于一个图像分类任务,传统的学习策略PL(Positive......

[深度学习] Noisy-Label paper implementations

Noisy label 相关论文复现

noise-validationSome noisy-label papers and training tricks implementation.Code:https://github.com/ivanwhaf/noise-validation Algorithms1.BaselineMNIST and CIFAR10 Dataset baseline using conv net 2.QBC-LossReferring to Active Learning. Using several models to inference, calculating each sample’s weig......

[软件安装] Ubuntu20.04安装Nvidia驱动,CUDA10.2,cuDNN7.6.5,Pytorch1.6.0及Detectron2踩坑记录

Ubuntu CUDA cuDNN Pytorch Dtectron2

前言最近准备装facebook的Detectron2目标检测框架,因对Windows适配不是很好,需要预装很多依赖以及CMake用来编译,折腾了半天没弄好,遂果断转至Linux,舒服多了,但是中间还是踩了一些坑,下面讲讲注意的一些事项。 安装/卸载Nvidia驱动安装ubuntu安装英伟达显卡驱动有两种方式。1.通过sudo命令安装:sudo apt install nvidia-driver-4402.打开Ubuntu自带的应用Software&Updates软件更新,选择要安装的驱动版本,如下图所示:注:以上两种方式安装完均须重启后才能生效,uefi的电脑需要在重启时将Secure Boo......