Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with the model outputs at inference #7

Open
hmrishavbandy opened this issue Sep 25, 2021 · 6 comments
Open

Issue with the model outputs at inference #7

hmrishavbandy opened this issue Sep 25, 2021 · 6 comments

Comments

@hmrishavbandy
Copy link

Issue with the final stage of training :

python train.py \
	${PREFIX} \
	--batchSize ${BSIZE0} \
	--nThreads ${NWK} \
	--update_part all \
	--niter 10 \
	${EXTRA}

The issue I am facing:

Traceback (most recent call last):
  File "train.py", line 60, in <module>
    infer_out,inp = trainer.pix2pix_model.forward(data_i, mode='inference')
ValueError: too many values to unpack (expected 2)
@hmrishavbandy
Copy link
Author

The hyperparameters for reference:

PREFIX="--dataset_mode_train trainimage \
--name debugarr0 \
--gpu_ids 0 \
--dataset_mode_val valimage \
--train_image_dir ... \
--train_image_list ...  \
--path_objectshape_base ... \
--path_objectshape_list ... \
--val_image_dir ... \
--val_image_list ... \
--val_mask_dir ... \
--no_vgg_loss \
--no_ganFeat_loss \
--load_size 256 \
--crop_size 256 \
--model arrange \
--netG twostagend \
--baseG baseconv \
--norm_type 1 \
--netD deepfill \
--load_base_g ... \
--load_base_d ... \
--lambda_ref 0.5 \
--lambda_l1 1 \
--preprocess_mode scale_shortside_and_crop"

@zengxianyu
Copy link
Owner

it's fixed. please pull to use the updated code

@mac744mail
Copy link

same error

@hmrishavbandy
Copy link
Author

Works

@hmrishavbandy
Copy link
Author

How many epochs did you run for each stage in the training? The epochs listed in the bash file seem too low. Did you use that low epochs?

@zengxianyu zengxianyu reopened this Sep 27, 2021
@zengxianyu
Copy link
Owner

it depends on the size of training dataset. The epoch listed in the bash file is for Places (8 million images)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants