Giter Club home page Giter Club logo

Comments (8)

daa233 avatar daa233 commented on May 20, 2024

Yes, the results are not very good when testing on the converted TF model.

The TF model was converted by semi-manually matching the weight/shapes/names between the TensorFlow variables and PyTorch model weights according to here. I don't know if there are some incompatible part. And there are also some operations that don't have weights like contextual attention, which may incompatible with the original one.

from generative-inpainting-pytorch.

chirag126 avatar chirag126 commented on May 20, 2024

Thanks for the information. In that case, do you also have the pre-trained weights for the Pytorch model?

from generative-inpainting-pytorch.

daa233 avatar daa233 commented on May 20, 2024

Yes, I just updated the PyTorch model download links in the README. Now you can download and test on it.

from generative-inpainting-pytorch.

chirag126 avatar chirag126 commented on May 20, 2024

Perfect, thanks. I will give it a try.

from generative-inpainting-pytorch.

chirag126 avatar chirag126 commented on May 20, 2024

The pre-trained model weights are giving size mismatch errors for different fine_generator layers. Any comments?

from generative-inpainting-pytorch.

daa233 avatar daa233 commented on May 20, 2024

Em... so embarrassing.

The pre-trained model weights are trained with a bug version --- some convolution layers' channel numbers are wrong in that version. The bugs were fixed by this pull request. So you need to change some channel numbers to load the model. Sorry about those problems.

After fixing the bugs, I haven't trained the model again. I prepare to train a model from scratch later but it will cost a long time.

from generative-inpainting-pytorch.

chirag126 avatar chirag126 commented on May 20, 2024

from generative-inpainting-pytorch.

daa233 avatar daa233 commented on May 20, 2024

@chirag126 New model released with commit b2d7de.

from generative-inpainting-pytorch.

Related Issues (20)

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.