Giter Site home page Giter Site logo

tlatkowski / inpainting-gmcnn-keras Goto Github PK

View Code? Open in Web Editor NEW
93.0 8.0 40.0 7.77 MB

Keras implementation of "Image Inpainting via Generative Multi-column Convolutional Neural Networks" paper published at NIPS 2018

License: MIT License

Python 83.93% Jupyter Notebook 16.07%
inpainting keras deep-learning nips-2018 gan generative-adversarial-network convolutional-neural-networks tensorflow computer-vision cnn

inpainting-gmcnn-keras's Introduction

๐Ÿ‘‹ Hi there, I'm Tomek

I'm an Experienced AI Engineer with over 10 years of hands-on experience in applying deep and shallow machine learning methods for solving tasks in the fields of:

  • Time Series
  • Computer Vision
  • Natural Language Processing
  • Data Mining

inpainting-gmcnn-keras's People

Contributors

cuevas1208 avatar dependabot[bot] avatar tlatkowski 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

inpainting-gmcnn-keras's Issues

Unable to run colab notebook

Hi,

I'm trying to run the colab notebook but I keep getting the following error when running this line:

Actually it first gives an error saying --experiment_name is required, but after passing that arg in I get the error below

!python inpainting-gmcnn-keras/runner.py --train_path images --mask_path mask -warm_up_generator --experiment_name tester

Traceback (most recent call last): File "inpainting-gmcnn-keras/runner.py", line 105, in <module> main() File "inpainting-gmcnn-keras/runner.py", line 52, in main config = main_config.MainConfig(MAIN_CONFIG_FILE) File "/content/inpainting-gmcnn-keras/config/main_config.py", line 22, in __init__ self.model = ModelConfig(model_config['MODEL']) File "/content/inpainting-gmcnn-keras/config/main_config.py", line 41, in __init__ self.add_mask_as_generator_input = parse_bool(model_section['ADD_MASK_AS_GENERATOR_INPUT']) File "/usr/lib/python3.6/configparser.py", line 1233, in __getitem__ raise KeyError(key) KeyError: 'ADD_MASK_AS_GENERATOR_INPUT'

Only one step for training

Hi,

I'm trying to test this inpainting alternative. I'm using code from branch tensorflow-1.15.2 and when execute runner.py this run only one step of training.

In the outputs folder, I see only step_000.png

Do you know why?

Thanks

Code for model testing

Hi,

Thank you so much for publishing the Keras implementation of gmcnn on Github.
Can you also provide the code for testing the model?

Error

image
Hello,
I'm trying to reproduce your algorithm, but I will get this error. What am I doing wrong?

Wrong results after Tensorflow 2x model conversion #70

Hi,

I hope you still give support for this repository. I tried converting this repository model to Tensorflow 2x step by step (also following the original repository by shepnerd). I think everything was fine, but when training and testing the model the results were not very satisfactory. So, maybe there is a problem with my conversion that I can't find it. I tried to train the model on a small subset of OpenImages V6. The principal parameters that I used (sorry, because names can be slightly different than yours):

--img_size 256x256x3
--batch_size 4
--learning_rate 1e-4
--gaussian_steps 7
--gaussian_kernel_size 32
--gaussian_kernel_std 20.0
--reconstruction_loss_weight 1.2
--adversarial_loss_weight 0.001
--gradient_penalty_loss_weight 10
--id_mrf_loss_weight' 0.03
--nn_stretch_sigma 0.5
--id_mrf_style_weight 1.0
--id_mrf_content_weight 1.0

I pretrained the model with only confidence reconstruction loss for the recommended steps, and results for this phase seem fine.

imagen
![imagen](https://
imagen
user-images.githubusercontent.com/39574343/111080637-a3871d00-84ff-11eb-90cb-c6de09d587f6.png)

However, in the training phase, after some steps, the results do not seem to converge and eliminate the mask.

imagen
imagen
imagen

I would like to know if you have any idea of what could be happening, or you have experienced any similar issue. I reviewed the code, networks, and losses many times, but could not find any solution.

Thank you very much.

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.