Skip to content

Commit

Permalink
update to pl 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
WangLibo1995 committed May 12, 2023
1 parent b178af2 commit 6028412
Show file tree
Hide file tree
Showing 17 changed files with 2,147 additions and 2,018 deletions.
3 changes: 2 additions & 1 deletion config/loveda/dcswin.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
save_top_k = 1 # save the top k model weights on the validation set
save_last = True # save the last model weight, e.g. test_weights_name='last'
check_val_every_n_epoch = 1 # run validation every n epoch
pretrained_ckpt_path = None # the path for the pretrained model weight
gpus = 'auto' # default or gpu ids:[0] or gpu nums: 2, more setting can refer to pytorch_lightning
enable_checkpointing = False # continue training with the checkpoint, default False
enable_checkpointing = None # whether continue training with the checkpoint, default None

# define the network, use pretrained backbone, the weight path of backbone
net = dcswin_small(num_classes=num_classes, pretrained=True, weight_path='pretrain_weights/stseg_small.pth')
Expand Down
3 changes: 2 additions & 1 deletion config/potsdam/dcswin.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
save_top_k = 1
save_last = False
check_val_every_n_epoch = 1
pretrained_ckpt_path = None # the path for the pretrained model weight
gpus = 'auto' # default or gpu ids:[0] or gpu nums: 2, more setting can refer to pytorch_lightning
enable_checkpointing = False # more setting can refer to pytorch_lightning
enable_checkpointing = None # whether continue training with the checkpoint, default None

# define the network
net = dcswin_small(num_classes=num_classes)
Expand Down
3 changes: 2 additions & 1 deletion config/potsdam/ftunetformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
save_top_k = 1
save_last = False
check_val_every_n_epoch = 1
pretrained_ckpt_path = None # the path for the pretrained model weight
gpus = 'auto' # default or gpu ids:[0] or gpu nums: 2, more setting can refer to pytorch_lightning
enable_checkpointing = False # continue training with the checkpoint, default False
enable_checkpointing = None # whether continue training with the checkpoint, default None

# define the network
net = ft_unetformer(num_classes=num_classes, decoder_channels=256)
Expand Down
3 changes: 2 additions & 1 deletion config/potsdam/unetformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
save_top_k = 1
save_last = True
check_val_every_n_epoch = 1
pretrained_ckpt_path = None # the path for the pretrained model weight
gpus = 'auto' # default or gpu ids:[0] or gpu nums: 2, more setting can refer to pytorch_lightning
enable_checkpointing = False # continue training with the checkpoint, default False
enable_checkpointing = None # whether continue training with the checkpoint, default None

# define the network
net = UNetFormer(num_classes=num_classes)
Expand Down
3 changes: 2 additions & 1 deletion config/uavid/unetformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
save_top_k = 1
save_last = True
check_val_every_n_epoch = 1
pretrained_ckpt_path = None # the path for the pretrained model weight
gpus = 'auto' # default or gpu ids:[0] or gpu nums: 2, more setting can refer to pytorch_lightning
enable_checkpointing = False # continue training with the checkpoint, default False
enable_checkpointing = None # whether continue training with the checkpoint, default None

# define the network
net = UNetFormer(num_classes=num_classes)
Expand Down
3 changes: 2 additions & 1 deletion config/vaihingen/dcswin.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
save_top_k = 1
save_last = False
check_val_every_n_epoch = 1
pretrained_ckpt_path = None # the path for the pretrained model weight
gpus = 'auto' # default or gpu ids:[0] or gpu nums: 2, more setting can refer to pytorch_lightning
enable_checkpointing = False # continue training with the checkpoint, default False
enable_checkpointing = None # whether continue training with the checkpoint, default None

# define the network
net = dcswin_small(num_classes=num_classes)
Expand Down
3 changes: 2 additions & 1 deletion config/vaihingen/ftunetformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
save_top_k = 1
save_last = False
check_val_every_n_epoch = 1
pretrained_ckpt_path = None # the path for the pretrained model weight
gpus = 'auto' # default or gpu ids:[0] or gpu nums: 2, more setting can refer to pytorch_lightning
enable_checkpointing = False # continue training with the checkpoint, default False
enable_checkpointing = None # whether continue training with the checkpoint, default None

# define the network
net = ft_unetformer(num_classes=num_classes, decoder_channels=256)
Expand Down
3 changes: 2 additions & 1 deletion config/vaihingen/unetformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
save_top_k = 1
save_last = True
check_val_every_n_epoch = 1
pretrained_ckpt_path = None # the path for the pretrained model weight
gpus = 'auto' # default or gpu ids:[0] or gpu nums: 2, more setting can refer to pytorch_lightning
enable_checkpointing = False # continue training with the checkpoint, default False
enable_checkpointing = None # whether continue training with the checkpoint, default None

# define the network
net = UNetFormer(num_classes=num_classes)
Expand Down
Loading

0 comments on commit 6028412

Please sign in to comment.