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
How does the fixed mask generated? #70
Comments
You just need to change |
Yes. I am trying to change 2 those functions. I already have the bounding box. so do i need to change anything in
Thanks |
@codaibk Hi, |
@JiahuiYu . Hi , Thanks for your reply
|
I found the problem. Because in |
@codaibk Why can not change the mask picture directly? |
@xuyifeng-nwpu Because in this project, they generate the mask using bounding box. Therefore, you need to change |
@codaibk ImageNet 256x256 inputpython test.py --image examples/imagenet/imagenet_patches_ILSVRC2012_val_00000827_input.png --mask examples/center_mask_256.png --output examples/output.png --checkpoint_dir model_logs/release_imagenet_256 |
@xuyifeng-nwpu i dont understand what you mean. Do you mean you will have random mask which is not same with this project? if yes, from my understanding, you need to change |
@codaibk The input image and result show as follows: My result is not nice. How about your half-inpainting effect? |
@xuyifeng-nwpu. I am still running my model. it haven't finish yet. I think your mask is correct. Maybe you can ask the author of this paper about your result. |
Do you re-train your data? I only use the author's imagenet model. I guess that the large area(half) inpainting of many categories of image maybe have not good result, especially on the edge of the image. If you try the experiment in a few kind of image(such as skirt) , the model may be effective. I look forward to your good results. Tell me please! |
@codaibk Thanks for your help and answers to others! I appreciate! @xuyifeng-nwpu Have you trained your model on your dataset with your masks? |
@JiahuiYu |
@xuyifeng-nwpu Thanks for your information. During training, the largest mask width/height is half of image size. Which means if image is |
@xuyifeng-nwpu But I have seen (in email) one who also tries to inpainting half of an image like yours. The performance is pretty good and I guess this code repo should work for your requirements. Just a reference. |
@JiahuiYu |
Hi he retrains the model on half masks. To change, you need to understand how masks in this code are generated. This issue has some code that may help. |
As reffered to in issue: JiahuiYu/generative_inpainting#70
Hi, Thank for your work.
I want to generate the fixed mask for my image with the mask's size = 1/2 image's size and the mask is on the right side of original image.
so what i should change to get that because so far your code generate random mask in r
andom_bbox
andbbox2mask
function.Original
mask
Thanks
The text was updated successfully, but these errors were encountered: