CoolFace
Apppublic

RabbitRUI/ruispace

sourceHugging Facemitupdated 3y agoView on Hugging Face
0likes
inference_options.py24 linesDownload Raw Back to options
1from face3d.options.base_options import BaseOptions2 3 4class InferenceOptions(BaseOptions):5    """This class includes test options.6 7    It also includes shared options defined in BaseOptions.8    """9 10    def initialize(self, parser):11        parser = BaseOptions.initialize(self, parser)  # define shared options12        parser.add_argument('--phase', type=str, default='test', help='train, val, test, etc')13        parser.add_argument('--dataset_mode', type=str, default=None, help='chooses how datasets are loaded. [None | flist]')14 15        parser.add_argument('--input_dir', type=str, help='the folder of the input files')16        parser.add_argument('--keypoint_dir', type=str, help='the folder of the keypoint files')17        parser.add_argument('--output_dir', type=str, default='mp4', help='the output dir to save the extracted coefficients')18        parser.add_argument('--save_split_files', action='store_true', help='save split files or not')19        parser.add_argument('--inference_batch_size', type=int, default=8)20        21        # Dropout and Batchnorm has different behavior during training and test.22        self.isTrain = False23        return parser24