Unrecognized arguments:True

kungkookie: <p>When I trained at ubutun: python train_voc.sh<br>
train_voc.sh<br>
CUDA_VISIBLE_DEVICES=0,1,2,3<br>
python train.py<br>
–backbone resnet --lr 0.007<br>
–workers 4<br>
–use-sbd True<br>
–epochs 50<br>
–batch-size 16<br>
–gpu-ids 0,1,2,3<br>
–checkname deeplab-resnet<br>
–eval-interval 1<br>
–dataset pascal<br>
train.py:error:unrecognized arguments:True</p>
<p>train.py:Parameter Settings</p>
<p>def main():<br>
parser = argparse.ArgumentParser(description=“PyTorch DeeplabV3Plus Training”)<br>
parser.add_argument(’–backbone’, type=str, default=‘xception’,<br>
choices=[‘resnet’, ‘xception’, ‘drn’, ‘mobilenet’],<br>
help=‘backbone name (default: resnet)’)<br>
parser.add_argument(’–out-stride’, type=int, default=16,<br>
help=‘network output stride (default: 8)’)<br>
parser.add_argument(’–dataset’, type=str, default=‘pascal’,<br>
choices=[‘pascal’, ‘coco’, ‘cityscapes’],<br>
help=‘dataset name (default: pascal)’)<br>
parser.add_argument(’–use-sbd’, action=‘store_true’, default=True,<br>
help=‘whether to use SBD dataset (default: True)’)<br>
parser.add_argument(’–workers’, type=int, default=2,<br>
metavar=‘N’, help=‘dataloader threads’)<br>
parser.add_argument(’–base-size’, type=int, default=513,<br>
help=‘base image size’)<br>
parser.add_argument(’–crop-size’, type=int, default=513,<br>
help=‘crop image size’)<br>
parser.add_argument(’–sync-bn’, type=bool, default=None,<br>
help=‘whether to use sync bn (default: auto)’)<br>
parser.add_argument(’–freeze-bn’, type=bool, default=False,<br>
help=‘whether to freeze bn parameters (default: False)’)<br>
parser.add_argument(’–loss-type’, type=str, default=‘ce’,<br>
choices=[‘ce’, ‘focal’],<br>
help=‘loss func type (default: ce)’)<br>
# training hyper params<br>
parser.add_argument(’–epochs’, type=int, default=None, metavar=‘N’,<br>
help=‘number of epochs to train (default: auto)’)<br>
parser.add_argument(’–start_epoch’, type=int, default=0,<br>
metavar=‘N’, help=‘start epochs (default:0)’)<br>
parser.add_argument(’–batch-size’, type=int, default=None,<br>
metavar=‘N’, help=‘input batch size for <br>
training (default: auto)’)<br>
parser.add_argument(’–test-batch-size’, type=int, default=None,<br>
metavar=‘N’, help=‘input batch size for <br>
testing (default: auto)’)<br>
parser.add_argument(’–use-balanced-weights’, action=‘store_true’, default=False,<br>
help=‘whether to use balanced weights (default: False)’)<br>
# optimizer params<br>
parser.add_argument(’–lr’, type=float, default=None, metavar=‘LR’,<br>
help=‘learning rate (default: auto)’)<br>
parser.add_argument(’–lr-scheduler’, type=str, default=‘poly’,<br>
choices=[‘poly’, ‘step’, ‘cos’],<br>
help=‘lr scheduler mode: (default: poly)’)<br>
parser.add_argument(’–momentum’, type=float, default=0.9,<br>
metavar=‘M’, help=‘momentum (default: 0.9)’)<br>
parser.add_argument(’–weight-decay’, type=float, default=5e-4,<br>
metavar=‘M’, help=‘w-decay (default: 5e-4)’)<br>
parser.add_argument(’–nesterov’, action=‘store_true’, default=False,<br>
help=‘whether use nesterov (default: False)’)<br>
# cuda, seed and logging<br>
parser.add_argument(’–no-cuda’, action=‘store_true’, default=<br>
False, help=‘disables CUDA training’)<br>
parser.add_argument(’–gpu-ids’, type=str, default=‘0’,<br>
help=‘use which gpu to train, must be a <br>
comma-separated list of integers only (default=0)’)<br>
parser.add_argument(’–seed’, type=int, default=1, metavar=‘S’,<br>
help=‘random seed (default: 1)’)<br>
# checking point<br>
parser.add_argument(’–resume’, type=str, default=None,<br>
help=‘put the path to resuming file if needed’)<br>
parser.add_argument(’–checkname’, type=str, default=None,<br>
help=‘set the checkpoint name’)<br>
# finetuning pre-trained models<br>
parser.add_argument(’–ft’, action=‘store_true’, default=False,<br>
help=‘finetuning on a different dataset’)<br>
# evaluation option<br>
parser.add_argument(’–eval-interval’, type=int, default=1,<br>
help=‘evaluuation interval (default: 1)’)<br>
parser.add_argument(’–no-val’, action=‘store_true’, default=False,<br>
help=‘skip validation during training’)</p>
<p>This seems to be a parameter setting issue, but I have all the parameters set, as required in the README</p>