Download SadTalker/src/face3d/options/test_options.py from duyv/API_MC_AI: direct link, hf CLI and curl.
- Browser
- Download file 830 Bytes
-
https://huggingface.co/duyv/API_MC_AI/resolve/main/SadTalker/src/face3d/options/test_options.py
- Command line
-
hf download hf://duyv/API_MC_AI/SadTalker/src/face3d/options/test_options.py
-
curl -L -o test_options.py https://huggingface.co/duyv/API_MC_AI/resolve/main/SadTalker/src/face3d/options/test_options.py
830 Bytes
| """This script contains the test options for Deep3DFaceRecon_pytorch | |
| """ | |
| from .base_options import BaseOptions | |
| class TestOptions(BaseOptions): | |
| """This class includes test options. | |
| It also includes shared options defined in BaseOptions. | |
| """ | |
| def initialize(self, parser): | |
| parser = BaseOptions.initialize(self, parser) # define shared options | |
| parser.add_argument('--phase', type=str, default='test', help='train, val, test, etc') | |
| parser.add_argument('--dataset_mode', type=str, default=None, help='chooses how datasets are loaded. [None | flist]') | |
| parser.add_argument('--img_folder', type=str, default='examples', help='folder for test images.') | |
| # Dropout and Batchnorm has different behavior during training and test. | |
| self.isTrain = False | |
| return parser | |