An open API service indexing awesome lists of open source software.

https://github.com/pxl-th/resnet.jl

ResNet implementation in Julia
https://github.com/pxl-th/resnet.jl

flux julia neural-networks resnet

Last synced: over 1 year ago
JSON representation

ResNet implementation in Julia

Awesome Lists containing this project

README

          

# ResNet

Create model:

```julia
model = ResNetModel(18; in_channels=3, classes=10)
```

or you can ommit classification layer,
by specifying number of `classes` as `nothing`.

- simple:

```julia
y = x |> model
```

- extract list of features:

```julia
features = model(x, Val(:stages))
```

Number of channels for each element of `features` is in `model.stages`.
Size of the model is in `model.size`.