Skip to content

Commit cf94851

Browse files
authored
Merge pull request #21 from Franblueee:vaeabmil
Adding VAEABMIL
2 parents bacb66b + 1673803 commit cf94851

26 files changed

+2101
-257
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Traffic Anomaly Detection (TAD) MIL Dataset
2+
3+
::: torchmil.datasets.TADMILDataset
4+
options:
5+
members:
6+
- __init__
7+
- __getitem__
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Video Classification Dataset
2+
3+
::: torchmil.datasets.VideoClassificationDataset
4+
options:
5+
members:
6+
- __init__
7+
- __getitem__

docs/api/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
- [Sm operator](nn/sm.md)
4747
- [Max Pool](nn/max_pool.md)
4848
- [Mean Pool](nn/mean_pool.md)
49+
- [Multi Layer Perceptron](nn/mlp.md)
50+
- [Variational Autoencoder](nn/variational_autoencoder.md)
4951

5052
## Models: [torchmil.models](models/index.md)
5153
- [Introduction](models/index.md)
@@ -66,6 +68,7 @@
6668
- [TransformerProbSmoothABMIL](models/transformer_prob_smooth_abmil.md)
6769
- [TransMIL](models/transmil.md)
6870
- [SETMIL](models/setmil.md)
71+
- [VAEABMIL](models/vaeabmil.md)
6972

7073
## Visualize: [torchmil.visualize](visualize/index.md)
7174
- [Introduction](visualize/index.md)

docs/api/models/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ They all inherit from the [General MIL model](mil_model.md) class, which provide
1919
- [TransMIL](transmil.md)
2020
- [SETMIL](setmil.md)
2121
- [IIBMIL](iibmil.md)
22+
- [VAEABMIL](vaeabmil.md)

docs/api/models/vaeabmil.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# VAEABMIL
2+
3+
::: torchmil.models.VAEABMIL
4+
options:
5+
members:
6+
- __init__
7+
- forward
8+
- compute_loss
9+
- predict
10+
- log_marginal_likelihood_importance_sampling

docs/api/nn/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ These modules are designed to be flexible and easy to use, allowing you to build
2727
- [Sm operator](sm.md)
2828
- [Max Pool](max_pool.md)
2929
- [Mean Pool](mean_pool.md)
30+
- [Multi Layer Perceptron](mlp.md)
31+
- [Variational Autoencoder](variational_autoencoder.md)

docs/api/nn/mlp.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# MLP
2+
::: torchmil.nn.MLP
3+
options:
4+
members:
5+
- __init__
6+
- forward
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Variational Autoencoder
2+
::: torchmil.nn.VariationalAutoEncoder
3+
options:
4+
members:
5+
- __init__
6+
- get_reparameterized_samples
7+
- get_raw_output_enc
8+
- get_raw_output_dec
9+
- forward
10+
- get_posterior_samples
11+
- complete_forward_samples
12+
- compute_loss
13+
- _kl_prior
14+
- _diagonal_log_gaussian_pdf
15+
- log_marginal_likelihood_importance_sampling
16+
-------------------------
17+
::: torchmil.nn.VariationalAutoEncoderMIL
18+
options:
19+
members:
20+
- __init__
21+
- forward
22+
- log_marginal_likelihood_importance_sampling
23+
- compute_loss
24+
- complete_forward_samples

mkdocs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,11 @@ nav:
136136
- api/datasets/wsi_dataset.md
137137
- api/datasets/trident_wsi_dataset.md
138138
- api/datasets/binary_classification_dataset.md
139+
- api/datasets/video_classification_dataset.md
139140
- api/datasets/camelyon16mil_dataset.md
140141
- api/datasets/pandamil_dataset.md
141142
- api/datasets/rsnamil_dataset.md
143+
- api/datasets/tadmil_dataset.md
142144
- api/datasets/false_frequency_dataset.md
143145
- api/datasets/mc_standard_dataset.md
144146
- api/datasets/sc_standard_dataset.md
@@ -171,6 +173,8 @@ nav:
171173
- api/nn/sm.md
172174
- api/nn/mean_pool.md
173175
- api/nn/max_pool.md
176+
- api/nn/mlp.md
177+
- api/nn/variational_autoencoder.md
174178
- torchmil.models:
175179
- api/models/index.md
176180
- api/models/mil_model.md
@@ -191,6 +195,7 @@ nav:
191195
- api/models/transmil.md
192196
- api/models/setmil.md
193197
- api/models/iibmil.md
198+
- api/models/vaeabmil.md
194199
- torchmil.visualize:
195200
- api/visualize/index.md
196201
- api/visualize/vis_ctscan.md

0 commit comments

Comments
 (0)