Giter VIP home page Giter VIP logo

csa-inpainting's People

Contributors

kumapowerliu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

csa-inpainting's Issues

Mask

That's a great work !
I would like to know whether the mask used in this paper comes from the training set of partial convolution?
Because the mask in this paper will not be updated during training to gradually narrow the mask area.
I find that the mask occlusion area in the training set of partial convolution is too large. Is this conducive to training?

problem in CSA layer

In CSA layer, if Dmaxi or Dadi is a negative value, mi can be an inappropriate value.
Because of this, ng_loss_value diverged to a very large value (about 1e+10).

Do you have any solution to this problem? I would appreciate it if you could share some idea with me.

您的工作很出色,想请教您关于复现您的代码时GPU应该如何指定的问题

我有两块GPU 0和1,除了在class Opion() 类中指定 ### 参数 self.gpu_ids=[1] 外,代码中还需要在哪块有指定,我只改了这个它显示了以下错误:(### train.ipy运行到 model.optimize_parameters()出错)。
调用CSA.py 中的224行出现报错
223 def optimize_parameters(self):
--> 224 self.forward()

##报错的提示:
RuntimeError: Expected tensor for argument #1 'input' to have the same device as tensor for argument #2 'weight'; but device 0 does not equal 1 (while checking arguments for cudnn_convolution)

期待您的帮助,我将不胜感激。

批量大小能不能大一点

作者你好 请问批量大小能不能设置大一点呢 , 代码说需要设置为1 ,如果想设置大一点应该怎么改代码

Code

Your work is very helpful to me. Can the complete code of this paper be uploaded? thx

License?

Can you please specify the license? Preferably MIT

the number of epoch

想请教一下,在celeba和paris 上分别需要设置epoch为多少?,总的训练epoch数是不是niter+niter_decay?

代码问题

image
我想问下,这个flatten_offsets作用是什么,谢谢。

How to define the mask source?

Is there any standard mask file source? Because the network issue, I can not download the specified three dataset, can you provide the mask file only?

Run ERROR

pic = (torch.cat([real_A, real_B,fake_B], dim=0) + 1) / 2.0
torchvision.utils.save_image(pic_1, '%s/Epoch_(%d)_(%dof%d).jpg' % (
save_dir, epoch, total_steps + 1, len(dataset_train)), nrow=2)

pic_1 not defined, 是不是要把pic_1改成pic?
按如上修改后,save_dir not defined 这是为啥呢?是代码执行的先后顺序有问题吗?

A few problems about Feature Patch Discriminator.

Hi, I'm reading your CSA-inpainting work recently. The most impressive novelty of this work is that CSA layer takes use of information from not only known regions, but also generated contents. A good work~

But I'm a little confused with the feature patch discriminator. Could you please help me?

  1. Pretrained? Are shallow layers of the feature patch discriminator pretrained on ImageNet, i.e., you use the shallow layers from pretrained VGG Net?
  2. Does the network directly calculate the adversarial loss in 14x14x512 feature map? How do you set the ground truth? a 14x14x512 tensor filled with 0/1? Dose this idea/operation similar with the paper Learning Pyramid-Context Encoder Network for High-Quality Image Inpainting, CVPR2019 . Why you would like to do so, avoid heavy parameters in fully connected layers?

Thx!

Evaluate the test results ?

Hello, thank you for sharing this great topic. Can you sharing the code for evaluating the results ?
I'm looking forward to your responding. Thank you

Irregular Mask Dataset

请问您在用Irregular Mask Dataset训练的时候使用那个网页上说的随机平移、旋转、膨胀、裁剪等方法来扩充数据集了吗 Places2, CelebA and Paris Street-View这三个数据集您用了多少呢

Can you share your training config for Places2 dataset?

Thanks for your great work.
I am wondering if you could share your Places2 full training config, e.g. the training epoch, lr_decay, etc..
Otherwise, did you train your model on Places2 low resolution(256*256) one or high resolution one?

The wrong results

Hello, thank you very much for the code.
Now,I use celeba-hq data to train model. In the program, according to the parameter opt.display_freq, the intermediate results can be displayed. However, from the 14th epoch, the output results of the model become all white,such as :
下载 (1)
下载 (2)
下载
I don't know what happened. Have you ever met this situation? I look forward to your reply!

Hi. train error

i used CelebA -> img_align_celeba.zip dataset, then image size = 178x 218.

When i run
image

error...image

Thx

训练速度

您好,您论文中说Place2数据集训练完只需要2天。但我在RTX TITAN上训练的时候,单帧图像训练耗时在500ms~1s之间,例如训练30个epoch,则训练完的时间远远不是2天(2个月甚至都训练不完),请问是我速度哪儿预估不对么。

image size

Dear Mr. Liu,

Thank you for your work and code. They are fantastic.
I have a question. How about if the dataset has different size images or rectangular images? Have you tried that?

Sally Huang

训练问题

1.为什么batchsize只能设置为1?我尝试过设置为6,在3个epoch之后loss都变成了Nan,请问调大batchsize需要改代码的哪些地方?
2,GPU利用率不稳定的问题,当batchsize为1时,GPU的利用率在20%-90%之间波动,我试着调大了batchsize该问题仍然存在,请问该如何解决?修改dataloader的num_workers以及pin_memory也都无效。

is there any plan on releasing your code?

Hi there, I'm also working on inpainting, and find attention mechanism very interesting. Yet I found it difficult to make it work on inpainting problems. Is there any plan on releasing your code? Thanks a lot.

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.