728x90
if __name__=='__main__':
# args 선언
(dataset)
-dataset
-dataroot
(model)
-model 종류
(optimization)
-batch_size
-learning_rate
-step_size
(loss)
-loss_function
(options)
-seed
-the number of gpu
-use gpu
-eval mode
#main
(seed 선언)
(gpu 사용)
(dataset)
(model 선언)
- model
- criterion
(train)
-train
() load_network
-val
-save_network
result save & printing
tensorboard
git
728x90
'Pytorch' 카테고리의 다른 글
Pytorch : Variable() 클래스 사용용도 및 의미 (현재는 필요없음) (0) | 2021.09.09 |
---|---|
Pytorch : Dataloader num_workers (0) | 2021.06.01 |
THOP: PyTorch-OpCounter (0) | 2021.04.01 |
visualization (0) | 2020.08.05 |
torch.utils.data.DataLoader (0) | 2020.06.20 |