slimgroup / InvertibleNetworks.jl

A Julia framework for invertible neural networks
MIT License
152 stars 23 forks source link

reverse glow for MAP #65

Open rafaelorozco opened 2 years ago

rafaelorozco commented 2 years ago

Add some backward_inv functions so that glow can get derivatives wrt to latent variable after reversing it. Now can do asim MAP solutions for learned regularization with non conditional glow network.

codecov[bot] commented 2 years ago

Codecov Report

Base: 88.06% // Head: 51.90% // Decreases project coverage by -36.16% :warning:

Coverage data is based on head (f55745e) compared to base (6d2fba0). Patch coverage: 47.56% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #65 +/- ## =========================================== - Coverage 88.06% 51.90% -36.17% =========================================== Files 33 33 Lines 2439 2576 +137 =========================================== - Hits 2148 1337 -811 - Misses 291 1239 +948 ``` | [Impacted Files](https://codecov.io/gh/slimgroup/InvertibleNetworks.jl/pull/65?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=slimgroup) | Coverage Δ | | |---|---|---| | [src/networks/invertible\_network\_glow.jl](https://codecov.io/gh/slimgroup/InvertibleNetworks.jl/pull/65/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=slimgroup#diff-c3JjL25ldHdvcmtzL2ludmVydGlibGVfbmV0d29ya19nbG93Lmps) | `0.00% <0.00%> (-89.00%)` | :arrow_down: | | [src/layers/invertible\_layer\_glow.jl](https://codecov.io/gh/slimgroup/InvertibleNetworks.jl/pull/65/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=slimgroup#diff-c3JjL2xheWVycy9pbnZlcnRpYmxlX2xheWVyX2dsb3cuamw=) | `96.80% <96.87%> (-0.49%)` | :arrow_down: | | [src/layers/invertible\_layer\_actnorm.jl](https://codecov.io/gh/slimgroup/InvertibleNetworks.jl/pull/65/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=slimgroup#diff-c3JjL2xheWVycy9pbnZlcnRpYmxlX2xheWVyX2FjdG5vcm0uamw=) | `92.68% <100.00%> (-3.79%)` | :arrow_down: | | [src/networks/invertible\_network\_hyperbolic.jl](https://codecov.io/gh/slimgroup/InvertibleNetworks.jl/pull/65/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=slimgroup#diff-c3JjL25ldHdvcmtzL2ludmVydGlibGVfbmV0d29ya19oeXBlcmJvbGljLmps) | `0.00% <0.00%> (-97.15%)` | :arrow_down: | | [...rc/networks/invertible\_network\_conditional\_hint.jl](https://codecov.io/gh/slimgroup/InvertibleNetworks.jl/pull/65/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=slimgroup#diff-c3JjL25ldHdvcmtzL2ludmVydGlibGVfbmV0d29ya19jb25kaXRpb25hbF9oaW50Lmps) | `0.00% <0.00%> (-94.74%)` | :arrow_down: | | [src/networks/invertible\_network\_irim.jl](https://codecov.io/gh/slimgroup/InvertibleNetworks.jl/pull/65/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=slimgroup#diff-c3JjL25ldHdvcmtzL2ludmVydGlibGVfbmV0d29ya19pcmltLmps) | `0.00% <0.00%> (-91.79%)` | :arrow_down: | | [src/utils/chainrules.jl](https://codecov.io/gh/slimgroup/InvertibleNetworks.jl/pull/65/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=slimgroup#diff-c3JjL3V0aWxzL2NoYWlucnVsZXMuamw=) | `0.00% <0.00%> (-91.49%)` | :arrow_down: | | [src/utils/invertible\_network\_sequential.jl](https://codecov.io/gh/slimgroup/InvertibleNetworks.jl/pull/65/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=slimgroup#diff-c3JjL3V0aWxzL2ludmVydGlibGVfbmV0d29ya19zZXF1ZW50aWFsLmps) | `0.00% <0.00%> (-89.71%)` | :arrow_down: | | [...rc/networks/invertible\_network\_conditional\_glow.jl](https://codecov.io/gh/slimgroup/InvertibleNetworks.jl/pull/65/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=slimgroup#diff-c3JjL25ldHdvcmtzL2ludmVydGlibGVfbmV0d29ya19jb25kaXRpb25hbF9nbG93Lmps) | `0.00% <0.00%> (-82.09%)` | :arrow_down: | | [src/utils/jacobian.jl](https://codecov.io/gh/slimgroup/InvertibleNetworks.jl/pull/65/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=slimgroup#diff-c3JjL3V0aWxzL2phY29iaWFuLmps) | `0.00% <0.00%> (-81.82%)` | :arrow_down: | | ... and [15 more](https://codecov.io/gh/slimgroup/InvertibleNetworks.jl/pull/65/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=slimgroup) | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=slimgroup). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=slimgroup)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

mloubout commented 1 year ago

Is this ready?