Skip to content

inhopp/UNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNet

UNet from scratch (pytorch)

(gpu 장비가 없어서) training 중간에 멈춘 결과입니다.

inference

Repository Directory

├── UNet
        ├── datasets
        │     └── cars
        ├── data
        │     ├── __init__.py
        │     └── dataset.py
        ├── option.py
        ├── model.py
        ├── train.py
        ├── inference.py
        └── README.md
  • data/__init__.py : dataset loader
  • data/dataset.py : data preprocess & get item
  • model.py : Define block and construct Model
  • option.py : Environment setting

Tutoral

Clone repo and install depenency

# Clone this repo and install dependency
git clone https://github.com/inhopp/UNet.git

train

python3 train.py
    --device {}(defautl: cpu) \
    --data_name {}(default: cars) \
    --lr {}(default: 0.0001) \
    --n_epoch {}(default: 5) \
    --num_workers {}(default: 2) \
    --batch_size {}(default: 16) \ 
    --eval_batch_size {}(default: 16)

testset inference

python3 inference.py
    --device {}(defautl: cpu) \
    --data_name {}(default: cars) \
    --num_workers {}(default: 2) \
    --eval_batch_size {}(default: 16)

Main Reference

https://github.com/aladdinpersson/Machine-Learning-Collection

About

UNet from scratch (pytorch)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages