Skip to content

Instantly share code, notes, and snippets.

View Twenty3hree's full-sized avatar
🐢
Working at SWUST

Twenty7even Twenty3hree

🐢
Working at SWUST
  • Chengdu.China
View GitHub Profile
@Twenty3hree
Twenty3hree / zip.ipynb
Last active August 30, 2024 05:55
[Python Funcs] Some python functions instruction
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Twenty3hree
Twenty3hree / split_dataset2yolo_format.md
Last active August 30, 2024 06:00
[Split Dataset to YOLO format] #YOLO

在YOLO格式的数据集中,trainval 通常是顶层目录,而 imageslabels 则位于 trainval 目录下。具体的结构如下:

dataset/
│
├── train/
│   ├── images/
│   └── labels/
│
├── val/
@Twenty3hree
Twenty3hree / gpu.ipynb
Last active August 30, 2024 05:59
[Torch Tips] Some Pytorch tips
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Twenty3hree
Twenty3hree / argmin.ipynb
Last active August 30, 2024 05:50
[Numpy Tips] Some numpy snippets
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Twenty3hree
Twenty3hree / export2yolo_dataset.md
Last active August 30, 2024 06:23
[YOLO Tools] Some YOLO tools
# YOLO Dataset Structure

## Original Dataset Structure

dataset
├── images
│   ├── image1.jpg
│   ├── image2.png
│ ├── image3.bmp
@Twenty3hree
Twenty3hree / datetime.ipynb
Last active August 30, 2024 05:57
[Python Tips] Some python snippets #tips
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Twenty3hree
Twenty3hree / get_mass.py
Created September 4, 2022 14:41
[Datasets] Some snippets to download datasets
# based on https://github.com/BBarbosa/tflearn-image-recognition-toolkit/blob/
# 4a0528dcfb206b1e45997f2fbc097aafacfa0fa0/scripts/html_link_parser.py
import re
import argparse
from PIL import Image
from io import BytesIO
from bs4 import BeautifulSoup
from skimage import io as skio
@Twenty3hree
Twenty3hree / linux shortcut
Last active August 30, 2024 06:04
[Linux Command] Some Linux Commands
TAB: 自动补全命令或文件名
CTRL + SHIFT + V: 粘贴(Linux中不需要复制的动作,文本被选择就自动被复制)
CTRL + SHIFT + T: 新建标签页
CTRL + D: 关闭标签页
CTRL + L: 清空屏幕
CTRL + R + 文本: 在输入历史中搜索
CTRL + A: 移动到行首
CTRL + E: 移动到行末
CTRL + C: 终止当前任务
CTRL + Z: 把当前任务放到后台运行(相当于运行命令时后面加&)
@Twenty3hree
Twenty3hree / sort.ipynb
Last active August 30, 2024 06:06
[Basic Algorithms] Some Basic usage of algorithms
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.