fashion-image-inpainting's People
fashion-image-inpainting's Issues
X
x_train = x_mask * y_train + (1.0 - x_mask) * 0.5
Could you make a demo script?
I've downloaded the pretrained weights but couldn't load it correctly. Could you spend some time making a demo script?
How to train with a custom dataset?
Hello, I'm very interested in this work. But I want to use this model on my own dataset. Would you mind teaching me how to train with a custom dataset? What kind of labels do I need to train this model? And are there any pre-trained models I can download?
Size of x_mask
Tried to input x_mask as a single channel binary mask with 1's at the area to be filled in with size torch.Size([1, 1, 256, 256])
however got
RuntimeError: Given groups=1, weight of size [64, 3, 7, 7], expected input[1, 1, 256, 256] to have 3 channels, but got 1 channels instead
What exactly is x_mask?
Pretrained model?
Excellent project! Do you have a pre-trained model available to test?
Loading weights
Tried to load the weights_net_df2.pth weights given. Firstly had to rename dict items to remove 'module' from parameter name stem but even then so getting Unexpected keys error'.
Here is how the loading was done and error:
from collections import OrderedDict
w=torch.load('weights_net_df2.pth')
new=OrderedDict({})
for key in w.keys():
new_name=('.').join(key.split('.')[1:])
new[new_name]=w[key]
net=Net()
net.load_state_dict(new)
Gives:
How to load weights correctly?
X Train Creation
What is the function of 0.5 here? Is the area to be filled in given by 0.5 values?
x_train = x_mask * y_train + (1.0 - x_mask) * 0.5
Pre-trained model
Results in ReadMe look great. Can you share your pre-trained model for us to try as well?
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.