my_args.py 3.1 KB
Newer Older
Q
qingqing01 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
import os
import datetime
import argparse
import numpy
import networks

modelnames = networks.__all__
# import datasets
datasetNames = ('Vimeo_90K_interp')  #datasets.__all__

parser = argparse.ArgumentParser(description='DAIN')

parser.add_argument('--debug', action='store_true', help='Enable debug mode')
parser.add_argument('--netName',
                    type=str,
                    default='DAIN',
                    choices=modelnames,
                    help='model architecture: ' + ' | '.join(modelnames) +
                    ' (default: DAIN)')

parser.add_argument('--datasetName',
                    default='Vimeo_90K_interp',
                    choices=datasetNames,
                    nargs='+',
                    help='dataset type : ' + ' | '.join(datasetNames) +
                    ' (default: Vimeo_90K_interp)')
parser.add_argument('--video_path',
                    default='',
                    help='the path of selected videos')
parser.add_argument('--output_path', default='', help='the output root path')

parser.add_argument('--seed',
                    type=int,
                    default=1,
                    help='random seed (default: 1)')

parser.add_argument('--batch_size',
                    '-b',
                    type=int,
                    default=1,
                    help='batch size (default:1)')
parser.add_argument('--channels',
                    '-c',
                    type=int,
                    default=3,
                    choices=[1, 3],
                    help='channels of images (default:3)')
parser.add_argument('--filter_size',
                    '-f',
                    type=int,
                    default=4,
                    help='the size of filters used (default: 4)',
                    choices=[2, 4, 6, 5, 51])

parser.add_argument('--time_step',
                    type=float,
                    default=0.5,
                    help='choose the time steps')
parser.add_argument(
    '--alpha',
    type=float,
    nargs='+',
    default=[0.0, 1.0],
    help=
    'the ration of loss for interpolated and rectified result (default: [0.0, 1.0])'
)
parser.add_argument('--frame_rate',
                    type=int,
                    default=None,
                    help='frame rate of the input video')

parser.add_argument('--patience',
                    type=int,
                    default=5,
                    help='the patience of reduce on plateou')
parser.add_argument('--factor',
                    type=float,
                    default=0.2,
                    help='the factor of reduce on plateou')

parser.add_argument('--saved_model',
                    type=str,
                    default='',
                    help='path to the model weights')
parser.add_argument('--no-date',
                    action='store_true',
                    help='don\'t append date timestamp to folder')
parser.add_argument('--use_cuda',
                    default=True,
                    type=bool,
                    help='use cuda or not')
parser.add_argument('--use_cudnn', default=1, type=int, help='use cudnn or not')

L
LielinJiang 已提交
94
# args = parser.parse_args()