提交 2be845aa 编写于 作者: C ceci3

fix

上级 c4c00f5d
...@@ -36,4 +36,4 @@ def create_data(cfgs, direction='AtoB', eval_mode=False): ...@@ -36,4 +36,4 @@ def create_data(cfgs, direction='AtoB', eval_mode=False):
def create_eval_data(cfgs, direction='AtoB'): def create_eval_data(cfgs, direction='AtoB'):
return create_data(cfgs, eval_mode=True) return create_data(cfgs, direction=direction, eval_mode=True)
...@@ -43,7 +43,7 @@ class gan_compression: ...@@ -43,7 +43,7 @@ class gan_compression:
num = self.cfgs.gpu_num num = self.cfgs.gpu_num
use_gpu, use_parallel = False, False use_gpu, use_parallel = False, False
if num == -1: if num == 0:
use_gpu = False use_gpu = False
else: else:
use_gpu = True use_gpu = True
......
...@@ -44,7 +44,7 @@ class configs: ...@@ -44,7 +44,7 @@ class configs:
default='resnet', default='resnet',
help="generator network in supernet") help="generator network in supernet")
parser.add_argument( parser.add_argument(
'--gpu_num', type=int, default='0', help='GPU number.') '--gpu_num', type=int, default='1', help='GPU number.')
### data ### data
parser.add_argument( parser.add_argument(
'--batch_size', type=int, default=1, help="Minbatch size") '--batch_size', type=int, default=1, help="Minbatch size")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册