PUT
PUT copied to clipboard
KeyError: 'relative_path'
when i eval the model,this question hanppened? %run scripts/inference.py --name OUTPUT/ffhq/checkpoint/last.pth --func inference_complet_sample_in_feature_for_evaluation --gpu 0 --batch_size 1
It is strongly suggested to use inference_inpainting.py
for evaluation. And the relative path should be provided. For example:
python scripts/inference_inpainting.py --func inference_inpainting \
--name OUTPUT/transformer_exp_name/checkpoint/last.pth \
--input_res 256,256 \
--num_token_per_iter 1 \ # if given like '1,2,5', the script will loop for each of them
--num_token_for_sampling 50 \ # if given like '50,100', the script will loop for each of them
--image_dir path/to/images \
--mask_dir path/to/masks \
--save_masked_image \ # whether to save the masked images
--save_dir path/to/save \
--num_sample 1 \ # the number of inpainted results for each image-mask pair
--gpu 0 # GPU ID to use. If not given, DDP is performed