RamziBm's picture
init
bdb955e

A newer version of the Gradio SDK is available: 5.30.0

Upgrade

Semantic segmentation reference training scripts

This directory is an edited copy of the torchvision reference scripts.

Usage

Train from scratch:

python train.py -b 8 --model deeplabv3_resnet101 --aux-loss --weights-backbone ResNet101_Weights.IMAGENET1K_V1 --epochs 30 --output-dir "./checkpoints" --split train

Resume training:

python train.py -b 8 --model deeplabv3_resnet101 --aux-loss --weights-backbone ResNet101_Weights.IMAGENET1K_V1 --epochs 60 --start-epoch 30 --weights /path/to/checkpoints.pt

Evaluate checkpoint:

python train.py -b 4 --model deeplabv3_resnet101 --aux-loss --weights-backbone ResNet101_Weights.IMAGENET1K_V1 --test-only --weights /path/to/checkpoints.pt