|
a |
|
b/params/test_params.py |
|
|
1 |
from .basic_params import BasicParams |
|
|
2 |
|
|
|
3 |
|
|
|
4 |
class TestParams(BasicParams): |
|
|
5 |
""" |
|
|
6 |
This class is a son class of BasicParams. |
|
|
7 |
This class includes parameters for testing and parameters inherited from the father class. |
|
|
8 |
""" |
|
|
9 |
def initialize(self, parser): |
|
|
10 |
parser = BasicParams.initialize(self, parser) |
|
|
11 |
|
|
|
12 |
# Testing parameters |
|
|
13 |
parser.add_argument('--save_latent_space', action='store_true', help='save the latent space of input data to disc') |
|
|
14 |
|
|
|
15 |
# Logging and visualization |
|
|
16 |
parser.add_argument('--print_freq', type=int, default=1, |
|
|
17 |
help='frequency of showing results on console') |
|
|
18 |
|
|
|
19 |
self.isTrain = False |
|
|
20 |
self.isTest = True |
|
|
21 |
return parser |