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

Poor quality image inpainting #1789

Closed
asideras opened this issue Apr 23, 2023 · 2 comments · Fixed by #1833
Closed

Poor quality image inpainting #1789

asideras opened this issue Apr 23, 2023 · 2 comments · Fixed by #1833
Assignees

Comments

@asideras
Copy link

asideras commented Apr 23, 2023

Hello everyone, congratulations on your great work.

I am attempting to use a pre-trained model to perform image inpainting on my own images. However, I am obtaining poor results for multiple images. Below, you can see the masked image, the mask, the output, and the code I executed:

Places365_val_00000012_masked
Places365_val_00000012_mask
result

!python demo/inpainting_demo.py \ configs/deepfillv2/deepfillv2_8xb2_places-256x256.py \ https://download.openmmlab.com/mmediting/inpainting/deepfillv2/deepfillv2_256x256_8x2_places_20200619-10d15793.pth \ tests/data/inpainting/Places365_val_00000012_masked.jpg \ tests/data/inpainting/Places365_val_00000012_mask.jpg \ tests/data/pred/RES.png

What did I do wrong?

Also, later on, I would like to run the model on multiple images (a subset of Places365) and use my own masks. Is this possible?
Thanks in advance.

@Z-Fran Z-Fran assigned Z-Fran and unassigned wangruohui Apr 28, 2023
@Z-Fran Z-Fran linked a pull request Apr 28, 2023 that will close this issue
7 tasks
@Z-Fran
Copy link
Collaborator

Z-Fran commented Apr 28, 2023

We have supported new demo here #1833 . You can run:

python demo/mmagic_inference_demo.py \
        --model-name deepfillv2  \  
        --img ./resources/input/inpainting/celeba_test.png \
        --mask ./resources/input/inpainting/bbox_mask.png \
        --result-out-dir ./output.jpg \
        --model-setting 1

@Z-Fran
Copy link
Collaborator

Z-Fran commented May 4, 2023

Closing this issue since the bug has been fixed in a merged pull request. Please feel free to reopen it if it has not been fixed.

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

Successfully merging a pull request may close this issue.

3 participants