Comments (8)
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.
Thanks for the information. In that case, do you also have the pre-trained weights for the Pytorch model?
from generative-inpainting-pytorch.
Yes, I just updated the PyTorch model download links in the README. Now you can download and test on it.
from generative-inpainting-pytorch.
Perfect, thanks. I will give it a try.
from generative-inpainting-pytorch.
The pre-trained model weights are giving size mismatch errors for different fine_generator layers. Any comments?
from generative-inpainting-pytorch.
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.
from generative-inpainting-pytorch.
@chirag126 New model released with commit b2d7de.
from generative-inpainting-pytorch.
Related Issues (20)
- What are the pmconv and allconv layers? HOT 1
- question about CA details HOT 2
- 程序运营问题 HOT 5
- Misalignment with TensorFlow weights HOT 3
- problem with the resulting image HOT 2
- About the function “local_patch(x, bbox_list)” in tools.py HOT 1
- 程序问题 HOT 5
- 程序问题 HOT 7
- Mask processing method in ContextualAttention HOT 1
- class Contextual Attention F.conv_transpose2d problem
- TypeError: load() missing 1 required positional argument: 'Loader' HOT 3
- Runtimerror:RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [65536, 1]], which is output 0 of AsStridedBackward0, is at version 6; expected version 5 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True). HOT 2
- validation problem HOT 1
- 关于网络层输出维度不一致
- Train failure with Imagenet HOT 1
- running on another dataset HOT 1
- New easy to use inpanting method with transformers
- Use multiple mask per image HOT 4
- DeepFill v2 Pytorch
- About Mask
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generative-inpainting-pytorch.