Skip to content

ossan-tamago/jaxU-Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

U-Net

U-Net written in Jax and Flax.

Usage

Training

python train.py

Predicting

python predict.py -c <checkpoint_dir>

Data directory structure

data
├── train
│   ├── images
│   │   ├── 1.jpg
│   │   ├── 2.jpg
│   ├── masks
│   │   ├── 1.jpg
│   │   ├── 2.jpg
├── val
│   ├── images
│   │   ├── 1.jpg
│   │   ├── 2.jpg
│   ├── masks
│   │   ├── 1.jpg
│   │   ├── 2.jpg

Optional arguments:

-e, --epochs - number of epochs to train (default: 1)

--image-size - size of the image (default: 64)

-b, --batch_size - batch size (default: 1)

-lr, --learning_rate - learning rate (default: 0.001)

-i, --input-dir - Path to the directory containing the data. (default: ./data)

-o, --output-dir - Path to the directory where the model and logs should be saved. (default: ./output)

Releases

No releases published

Packages

No packages published

Languages