Skip to content

Instantly share code, notes, and snippets.

View hanwinbi's full-sized avatar
📚
Learn and lean!

Hanwin_Bi hanwinbi

📚
Learn and lean!
  • Shanghai
View GitHub Profile
@hanwinbi
hanwinbi / 01.bash_shortcuts_v2.md
Created March 5, 2023 03:18 — forked from tuxfight3r/01.bash_shortcuts_v2.md
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@hanwinbi
hanwinbi / course.c
Last active January 18, 2023 04:43
implementation of course.h
#include "course.h"
#include <stdlib.h>
typedef struct course
{
int refcount;
uint16_t code;
enum subject sub;
};
@hanwinbi
hanwinbi / DatasetInfo.py
Created September 1, 2020 09:33
KITS19测试代码
import os
import config
import json
import cv2 as cv
from collections import OrderedDict
rela_path = config.json_path
data_path = config.data_root # 数据集的绝对路径
output_json_folder = config.json_path # 输出所有数据信息的json文件夹目录
import os
import cv2 as cv
import torch
import numpy as np
from KITS19Rank4 import config
import json
from torch.utils.data import Dataset, DataLoader
from torchvision import transforms
dir = config.json_path