Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoForte authored Mar 19, 2020
1 parent 1d7ee8b commit 9d6340e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Marco Forte<sup>1</sup>, [François Pitié](https://francois.pitie.net/)<sup>1</
<sup>1</sup> Trinity College Dublin

<p align="center">
<img src="./examples/example_results.png" width="640" title="Our results"/>
<img src="./examples/example_results.png" width="840" title="Our results"/>
</p>

## Requirements
Expand All @@ -30,9 +30,17 @@ GPU memory >= 11GB for inference on Adobe Composition-1K testing set, more gener


## Prediction
We provide a script `demo.py` and jupyter notebook which both give the foreground, background and alpha predictions of our model.
We provide a script `demo.py` and jupyter notebook which both give the foreground, background and alpha predictions of our model. The test time augmentation code will be made availiable soon.


## Training
Training code is not released at this time. It may be released upon acceptance of the paper.
Here are the key takeaways from our work with regards training.
- Use a batch-size of 1, and use Group Normalisation and Weight Standardisation in your network.
- Train with clipping of the alpha instead of sigmoid.
- The L1 alpha, compositional loss and laplacian loss are beneficial. Gradient loss is not needed.
- For foreground prediction, we extend the foreground to the entire image and define the loss on the entire image or at least the unknown region. We found this better than solely where alpha>0.

## Citation

```
Expand Down

0 comments on commit 9d6340e

Please sign in to comment.