NVIDIA / pix2pixHD

Synthesizing and manipulating 2048x1024 images with conditional GANs
https://tcwang0509.github.io/pix2pixHD/
Other
6.57k stars 1.38k forks source link

The training effect is good, but the test effect is poor. #328

Open yanxi20000519 opened 6 months ago

yanxi20000519 commented 6 months ago

The image generated in the training process has a good effect, but it is also poor to test the effect with the training set.My orders are: train:

python train.py --name InstanceData --instance_feat --checkpoints_dir ./CheckPoint --batchSize 2 --label_nc 7

python precompute_feature_maps.py --name InstanceData --label_nc 7 --batchSize 4 --checkpoints_dir ./CheckPoint --instance_feat

python train.py --name InstanceDataNew --netG local --ngf 32 --num_D 3 --load_pretrain CheckPoint/InstanceData/ --niter 20 --niter_decay 20 --niter_fix_global 10 --instance_feat --load_features --batchSize 4 --label_nc 7 --checkpoints_dir ./CheckPoint

test:

python encode_features.py --name InstanceDataNew --netG local --ngf 32 --checkpoints_dir ./CheckPoint --label_nc 7 --instance_feat

python test.py --name InstanceDataNew --netG local --ngf 32 --instance_feat --checkpoints_dir ./CheckPoint --label_nc 7

YangBo0411 commented 6 months ago

try train: python train.py --name InstanceData --instance_feat --checkpoints_dir ./CheckPoint --batchSize 2 --label_nc 7 --netG local

DuWenTao2 commented 2 months ago

The image generated in the training process has a good effect, but it is also poor to test the effect with the training set.My orders are: train:

python train.py --name InstanceData --instance_feat --checkpoints_dir ./CheckPoint --batchSize 2 --label_nc 7

python precompute_feature_maps.py --name InstanceData --label_nc 7 --batchSize 4 --checkpoints_dir ./CheckPoint --instance_feat

python train.py --name InstanceDataNew --netG local --ngf 32 --num_D 3 --load_pretrain CheckPoint/InstanceData/ --niter 20 --niter_decay 20 --niter_fix_global 10 --instance_feat --load_features --batchSize 4 --label_nc 7 --checkpoints_dir ./CheckPoint

test:

python encode_features.py --name InstanceDataNew --netG local --ngf 32 --checkpoints_dir ./CheckPoint --label_nc 7 --instance_feat

python test.py --name InstanceDataNew --netG local --ngf 32 --instance_feat --checkpoints_dir ./CheckPoint --label_nc 7

hello would you solove this question ? please help me