Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump albumentations; support resuming of training #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ pip install jupyterlab --upgrade
pip install scikit-image tqdm wget
pip install cython pyyaml lmdb
pip install opencv-python opencv-contrib-python
pip install open3d albumentations requests
pip install open3d requests
pip install albumentations>=5.1.0
pip install qimage2ndarray
pip install imageio-ffmpeg
pip install face-alignment dlib
Expand Down
3 changes: 2 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def parse_args():
parser.add_argument('--seed', type=int, default=0, help='Random seed.')
parser.add_argument('--local_rank', type=int, default=0)
parser.add_argument('--single_gpu', action='store_true')
parser.add_argument('--resume', action='store_true')
parser.add_argument('--num_workers', type=int)
args = parser.parse_args()
return args
Expand Down Expand Up @@ -61,7 +62,7 @@ def main():
sch_G, sch_D,
train_data_loader, val_data_loader)
current_epoch, current_iteration = trainer.load_checkpoint(
cfg, args.checkpoint)
cfg, args.checkpoint,resume=args.resume)

# Start training.
for epoch in range(current_epoch, cfg.max_epoch):
Expand Down