-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
104 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
```@meta | ||
CurrentModule = Boltz | ||
``` | ||
|
||
# `Boltz.Layers` and `Boltz.Basis` API Reference | ||
|
||
## `Layers` API | ||
|
||
```@docs | ||
Layers.ConvBatchNormActivation | ||
Layers.ConvNormActivation | ||
Layers.ClassTokens | ||
Layers.HamiltonianNN | ||
Layers.MultiHeadSelfAttention | ||
Layers.MLP | ||
Layers.TensorProductLayer | ||
Layers.ViPosEmbedding | ||
Layers.VisionTransformerEncoder | ||
``` | ||
|
||
## Basis Functions | ||
|
||
!!! warning | ||
|
||
The function calls for these basis functions should be considered experimental and are | ||
subject to change without deprecation. However, the functions themselves are stable | ||
and can be freely used in combination with the other Layers and Models. | ||
|
||
```@docs | ||
Basis.Cos | ||
Basis.Chebychev | ||
Basis.Fourier | ||
Basis.Legendre | ||
Basis.Polynomial | ||
Basis.Sin | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
```@meta | ||
CurrentModule = Boltz | ||
``` | ||
|
||
# Boltz.jl Private API | ||
|
||
```@docs | ||
Boltz._seconddimmean | ||
Boltz._should_type_assert | ||
Boltz._fast_chunk | ||
Boltz._flatten_spatial | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
```@meta | ||
CurrentModule = Boltz | ||
``` | ||
|
||
# Computer Vision Models (`Vision` API) | ||
|
||
## Native Lux Models | ||
|
||
```@docs | ||
Vision.VGG | ||
Vision.VisionTransformer | ||
``` | ||
|
||
## Imported from Metalhead.jl | ||
|
||
!!! tip | ||
|
||
You need to load `Flux` and `Metalhead` before using these models. | ||
|
||
```@docs | ||
Vision.AlexNet | ||
Vision.ConvMixer | ||
Vision.DenseNet | ||
Vision.GoogLeNet | ||
Vision.MobileNet | ||
Vision.ResNet | ||
Vision.ResNeXt | ||
``` | ||
|
||
## Pretrained Models | ||
|
||
!!! tip | ||
|
||
Pass `pretrained=true` to the model constructor to load the pretrained weights. | ||
|
||
|
||
| MODEL | TOP 1 ACCURACY (%) | TOP 5 ACCURACY (%) | | ||
| :------------------------ | :----------------: | :----------------: | | ||
| `AlexNet()` | 54.48 | 77.72 | | ||
| `VGG(11)` | 67.35 | 87.91 | | ||
| `VGG(13)` | 68.40 | 88.48 | | ||
| `VGG(16)` | 70.24 | 89.80 | | ||
| `VGG(19)` | 71.09 | 90.27 | | ||
| `VGG(11; batchnorm=true)` | 69.09 | 88.94 | | ||
| `VGG(13; batchnorm=true)` | 69.66 | 89.49 | | ||
| `VGG(16; batchnorm=true)` | 72.11 | 91.02 | | ||
| `VGG(19; batchnorm=true)` | 72.95 | 91.32 | | ||
|
||
### Preprocessing | ||
|
||
All the pretrained models require that the images be normalized with the parameters | ||
`mean = [0.485f0, 0.456f0, 0.406f0]` and `std = [0.229f0, 0.224f0, 0.225f0]`. |