vinthony / deep-blind-watermark-removal

[AAAI 2021] Split then Refine: Stacked Attention-guided ResUNets for Blind Single Image Visible Watermark Removal
https://arxiv.org/abs/2012.07007
223 stars 55 forks source link

27kpng_model_best.pth.tar The Compressed data has been corrupted #5

Closed Tristacheng closed 3 years ago

Tristacheng commented 3 years ago

Hi, thank you for sharing your work. I want to run your network on my data, But when I decompressed 27kpng_model_best.pth.tar, it says the file is corrupted, could you please upload it again?

vinthony commented 3 years ago

Hi, you do not need to decompress the model.

just load the model to the neural network via:

... = torch.load(/path/to/27kpng_model_best.pth.tar)

you can find the whole framework via our online demo.

Tristacheng commented 3 years ago

Hi, you do not need to decompress the model.

just load the model to the neural network via:

... = torch.load(/path/to/27kpng_model_best.pth.tar)

you can find the whole framework via our online demo.

thank you for your reply, it's ok

Tristacheng commented 3 years ago

hi, when I use this model on my data, the results are not pleasing. could you give me some advice? @vinthony 捕获2 捕获

vinthony commented 3 years ago

Hi, removing the watermark total blindly is still very challenging. In our experiments, the current model is trained on the synthesized datasets( only 27k as described in the paper) which might just follow the specific distribution.

For the images in the wild, there are many challenges that might influence the performance of the models. For example, the released model is only trained on colorful watermarks other than the grayscale ones as shown in your images. Also, these colorful watermarks contain both the logo and text (mainly logo) other than the grayscale ones in yours.

Hope it helps.

Tristacheng commented 3 years ago

Got it, thank you for your kindly reply. I will try it with my own dataset.

Tristacheng commented 3 years ago

Got it, thank you for your kindly reply. I will try it with my own dataset.

hi, I made my own dataset which consists of 100 watemarks and 30k pictures and 80% of watermark is grayscale and retrained the model, however the results is not pleasing. finally the best performance is PSNR:31.2890 and SSIM:0.9644 For example, this surrounding of watermark arise halation Could you give me some advise? image

vinthony commented 3 years ago

Hi thanks for this feedback,

  1. Are these watermarks transparent?
  2. It looks like the watermark detection fails to get accurate results, maybe the globally skip-connections can be removed, thus, the second network will still learn to handle the edge automatically.
  3. By the way, I think a gradient loss may be helpful.
Tristacheng commented 3 years ago

Hi thanks for this feedback,

  1. Are these watermarks transparent?
  2. It looks like the watermark detection fails to get accurate results, maybe the globally skip-connections can be removed, thus, the second network will still learn to handle the edge automatically.
  3. By the way, I think a gradient loss may be helpful.
  1. yes, part of data in my dataset are transparent. However, I check the mask and found there is compression, and this might have a negative effect, so I will revise it and retrain my model. image
  2. I think skip-connections might help to get a accurate watermark detection result, however, I will take a chance.
  3. It is a good idea! I will try it.

Thank you for your suggestions, I appreciate it.

vinthony commented 3 years ago

ok, btw, in 2. the globally skip-connections mean the skip-connection between the input and the final target, which means when the detection in the first step is not good enough, the second network still has a chance to make it better automatically.