command | description |
---|---|
ctrl + a | Goto BEGINNING of command line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "course.h" | |
#include <stdlib.h> | |
typedef struct course | |
{ | |
int refcount; | |
uint16_t code; | |
enum subject sub; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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文件夹目录 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |