Coder Social home page Coder Social logo

deepfillv2_pytorch's Issues

The hyperparameters of loss functions are not the same as the official tensorflow implementation.

Hi there,

I have noticed that you have set the ratio between l1 loss, perceptual loss and adversarial loss as 100: 10: 1, which is not the same as the official implementation. The tensorflow official implementation set l1 loss: adversarial loss = 1: 1. Are you sure this ensure the reproducibility? I really doubt that.

By the way, mmediting version code also set l1 loss: adversarial loss = 1: 0.1. I have tried the ratio of 1: 1. But the model easily collapse. Does anyone know what cause this problem? Is it lead by the difference between PyTorch and TensorFlow?

Google Colab Link

Hi!

Thanks for the awesome repo.
I have used the repo to create a google colab link for inferencing. The link to my repo is here

Please let me know if any other citations are required.

The train set and the value set

The train set and value set are placed under the 'dataset_path'? the train set is good pictures and the value is poor pictures.

NameError: name 'results_path' is not defined

Hello,

after running !bash ./run_test.sh

I get :

Traceback (most recent call last): File "/content/DeepFillv2_Pytorch/test.py", line 41, in <module> tester.WGAN_tester(opt) File "/content/DeepFillv2_Pytorch/tester.py", line 30, in WGAN_tester if not os.path.exists(results_path): NameError: name 'results_path' is not defined

Questions about implementation different from the GatedConv paper

Hi, thank you for your code.
I have some questions.

  1. Is there a reason why sn is set to True in the class TransposeGatedConv2d of network_module.py file? It is used directly on the generator.
  2. Do you think excluding perceptual loss in this implementation will not affect the result?

Thank you!

无法训练

几个epoch之后就爆显存,把batch_size设置为1或2时不会出现这个问题,但是在test时直接把输入图像输出了,mask部分变成了黑色

the activation funtion of generator

Hi,
Firstly, Thanks for your sharing the code.
When I read your code, I found the last layer in generator is nn.Tanh, but the inputs of images with range [0, 1]
Could you please to explain the reason why you training like that ?

Get more test images that shows good 2D Image Inpainting

Hello, I'm interested in your DeepFillv2 Model for 2D Image Inpainting. And your suggested images show awesome at 2D Image Inpainting. I'd like to get more test examples that looks good on 2D Image Inpainting. Could you provide me more??
Why I left this issue is that your test images are different comparing with Original DeepFillv2 Examples but Inpainting performance is perfect, I think.
Thank you for your attention

Several issues occur while trying other training settings

Hi. Thanks for your re-implementation. I got several questions when I was training other settings according to the paper.
The author of DeepFillv2 said that this model can be trained with input channel of 5, which consists of masked image, mask and sketch. I want to train a model to inpaint image with user-guided sketch. But the model cannot converge all the time and the output result was a totally black color image.

Recently I had checked out another repo which is the pytorch re-implementation of the paper Contextual Residual Aggregation by Huawei. The first-stage model is just the same as DeepFillv2. But I notice that the hyper-parameters are not the same. Besides, I noticed that the loss function of the discriminator was hinge loss. But it wasn't implemented in your code. I was quite confused about this, could you please explain why the above issues happen? Thanks a lot!

About Loss ?

Hello thanks for sharing your work.
I am trying training the model with CelebA datasets but the loss function when training is too large. Do you think this loss function is problematic for me?
image
when i tried the test, the result made me not satisfied
result_0
can you help me ? Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.