Skip to content

Commit 07e233c

Browse files
committed
[Minor] reduce memory usage
1 parent d2303ce commit 07e233c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DiffAugment-stylegan2/run_few_shot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def run(dataset, resolution, result_dir, DiffAugment, num_gpus, batch_size, tota
4242
metric_args = EasyDict(cache_dir=dataset, num_repeats=num_repeats)
4343

4444
desc = 'DiffAugment-stylegan2' if DiffAugment else 'stylegan2'
45-
dataset_args = EasyDict(tfrecord_dir=dataset, resolution=resolution, from_tfrecords=True)
45+
dataset_args = EasyDict(tfrecord_dir=dataset, resolution=resolution, shuffle_mb=256, prefetch_mb=256, from_tfrecords=True)
4646
desc += '-' + os.path.basename(dataset)
4747
if resolution is not None:
4848
desc += '-{}'.format(resolution)

0 commit comments

Comments
 (0)