Comments (8)
@ljjcoder Partial convolution is doing the same thing, only in their paper, they declare the mask M (0 for holes)
, which is 1-M
in our code!
Judging by your results, it looks like you have downloaded their Training Mask Dataset and that's why your input is mostly white! I'm not sure if that's the dataset they used to train their model because it obviously is different than what we see in their paper. We used their Testing Irregular Mask Dataset for our training which contains 12,000 irregular masks, and by augmentation we increased the size to 60,000!
from edge-connect.
Hello!Can you help me with the augmented train masks dataset which originally made by Guilin Liu ?
from edge-connect.
@dulibubai You can try rotating each image by 4 multiples of 90 degrees, assuming img
is an ndaaray
:
from scipy.ndimage import rotate
rotate(img, 90)
You can also reflect the image about its y axis:
img[:, ::-1, ...]
If you conbine both methods, it gives you 4 x 2
size of the original dataset.
from edge-connect.
But the original masks dataset is not the binary images,which don't like the form of test masks dataset?
How do you address it?
from edge-connect.
@dulibubai Like I said, we used their Testing Irregular Mask Dataset, and they are binary mask images. You can easily augment the dataset to be almost 96,000, which is a good figure!
You can also download Quick Draw Irregular Mask Dataset by Karim Iskakov which contains lots of binary strokes drawn by human hand.
from edge-connect.
I See,Thanks again!
from edge-connect.
@knazeri Thanks for your reply!I also some question about training。there are three stage for trainning the model,1) training the edge model, 2) training the inpaint model and 3) training the joint model。you say the celebA need about 40 epoch to train。Did the 40 epoch is need for every stage or only for 3 stage and how many epoch does it need for every stage?
from edge-connect.
@jtetc Technically you need to train each one separately from scratch! However, if you want to speed up the training, you can start by pre-training your model with a smaller input size (say 128). This especially helps with edge model (mode=1)
from edge-connect.
Related Issues (20)
- Test image is being filled in a lighter shade HOT 1
- Who can help me slove this error? (when I try to train ) HOT 5
- Run the program on CoLab
- Convergency of edge model HOT 10
- Hello, After reading your paper, may I have a question that why you choice 178 for the celebA dataset drop size.
- 如果对图像修复,edge-connect感兴趣,或者需要帮助,可以联系我
- Training on Google Colab immediately stops HOT 1
- Selection of dataset
- Canny sigma HOT 1
- how to implement the visualization for the learned edges? HOT 2
- Sizes of tensors must match except in dimension 1
- New easy to use inpanting method with transformers HOT 1
- When using edge=2, training has ValueError: operands could not be broadcast together with shapes (256,256,3) (256,256)
- Why is there an error when I train MODEL4: joint model/为什么我训练MODEL4 :joint model会报错
- When I tried to start training, I got an error:RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [1, 512, 4, 4]] is at version 2; expected version 1 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True). HOT 15
- About precision and recall during training HOT 1
- The loss function is abnormal when the edge network is trained
- RuntimeError: CUDA error: device-side assert triggered CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
- a question
- Edge Model Not converging
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 edge-connect.