Skip to content

Commit 0f701d2

Browse files
authored
Update README.md
1 parent 7f0a3c7 commit 0f701d2

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

README.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,30 @@ View consensus data with `.deep_staple/postprocessing/consensus/visualize_consen
3737

3838
## Code
3939

40-
<img src="https://render.githubusercontent.com/render/math?math={\mathbf{DP_{\sigma}} = sigmoid\left(\mathbf{DP_S}\right)}#gh-light-mode-only"> <img src="https://render.githubusercontent.com/render/math?math={\color{white}\mathbf{DP_{\sigma}} = sigmoid\left(\mathbf{DP_S}\right)}#gh-dark-mode-only">
41-
40+
```math
41+
\mathbf{DP_{\sigma}} = sigmoid\left(\mathbf{DP_S}\right)
42+
```
4243
https://github.com/MDL-UzL/curriculum_deeplab/blob/992fbf228389c880c9312f1393e5bc0e0a7cea58/main_curriculum_deeplab.py#L734
4344

4445
```math
45-
e^{i\pi} + 1 = 0
46+
\ell_{DP}\left(f_\theta\left(\mathbf{x_B}\right), \mathbf{y_B}\right)
47+
= \sum_{b=1}^{\lvert B \rvert}\ell_{CE, spatial}\left(f_{\theta}\left(\mathbf{x_b}\right), \mathbf{y_b}\right) \cdot DP_{\sigma_{b}} \quad\textrm{with} \quad B \subseteq S
4648
```
4749

48-
<img src="https://render.githubusercontent.com/render/math?math={\ell_{DP}\left(f_\theta\left(\mathbf{x_B}\right), \mathbf{y_B}\right)
49-
= \sum_{b=1}^{\lvert B \rvert}\ell_{CE, spatial}\left(f_{\theta}\left(\mathbf{x_b}\right), \mathbf{y_b}\right) \cdot DP_{\sigma_{b}} \quad\textrm{with} \quad B \subseteq S}#gh-light-mode-only"> <img src="https://render.githubusercontent.com/render/math?math={\ell_{DP}\left(f_\theta\left(\mathbf{x_B}\right), \mathbf{y_B}\right)
50-
= \sum_{b=1}^{\lvert B \rvert}\ell_{CE, spatial}\left(f_{\theta}\left(\mathbf{x_b}\right), \mathbf{y_b}\right) \cdot DP_{\sigma_{b}} \quad\textrm{with} \quad B \subseteq S}#gh-dark-mode-only">
51-
52-
50+
```math
51+
\ell = \ell_{DP} - \sum_{b=1}^{\lvert B \rvert}
52+
\frac{\#\left\{f_\theta\left(\mathbf{x_b}\right) = c\right\}}{\#\left\{f_\theta\left(\mathbf{x_b}\right) = c\right\} + \#\left\{f_\theta\left(\mathbf{x_b}\right) = \overline{c}\right\}} \cdot DP_{\sigma_{b}}
53+
```
5354

54-
<img src="https://render.githubusercontent.com/render/math?math={}#gh-light-mode-only"> <img src="https://render.githubusercontent.com/render/math?math={}#gh-dark-mode-only">
5555

56-
<img src="https://render.githubusercontent.com/render/math?math={}#gh-light-mode-only"> <img src="https://render.githubusercontent.com/render/math?math={}#gh-dark-mode-only">
56+
```math
57+
DP_{\tilde\sigma_b} = \frac{DP_{\sigma_b}}{log\left(\#\left\{(\mathbf{y_b} = c\right\}+e\right)+e}
58+
```
59+
60+
61+
```math
62+
\mathbf{C_M} = \left(\sum_{m=1}^{\lvert M \rvert} softmax(\mathbf{DP_{M}})_{m} \cdot \mathbf{y_m}\right) > 0.5 \quad \textrm{with} \quad M \subset S
63+
```
5764

5865
# Paper
5966

0 commit comments

Comments
 (0)