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

predict, ValueError:not enough values to unpack (expected 2, got 1) #274

Open
leayz-888 opened this issue Nov 9, 2023 · 1 comment
Open

Comments

@leayz-888
Copy link

First of all, thank you for your great work!
I want to use a lama-fourier model trained on the places dataset to make predictions on my own dataset, the command I use is:
python ./bin/predict.py model.path=/home/project/lama/lama-regular/ indir=/home/project/lama/my_dataset/eval/random_medium_512/ outdir=/home/project/lama/inference/my_dataset /random_medium_512, I set refine to True, but got an error:
File "./bin/predict.py", line 75, in main
cur_res = refine_predict(batch, model, **predict_config.refiner)
File "/home/project/lama/saicinpainting/evaluation/refinement.py", line 308, in refine_predict
image_inpainted = _infer(image, mask, forward_front, forward_rears, image_inpainted, orig_shape, devices, ids, n_iters, lr)
File "/home/project/lama/saicinpainting/evaluation/refinement.py", line 128, in _infer
z1,z2 = forward_front(masked_image)
ValueError: not enough values to unpack (expected 2, got 1)
But when I set refine to False, this problem disappears. How can I solve this problem? Greatful!

@ankuPRK
Copy link
Contributor

ankuPRK commented Jan 4, 2024

Hey thanks for raising the issue. I'm looking into it, will release a fix soon!

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

2 participants