Accelerate ⚡ your ML research using pre-built Deep Learning Models with Lux.
using Pkg
Pkg.add("Boltz")
using Boltz, Lux, Random
using JLD2 # Needed to load pretrained weights
model = Vision.AlexNet(; pretrained="ImageNet1K") # or "DEFAULT"
ps, st = Lux.setup(Random.default_rng(), model)
x = rand(Float32, 224, 224, 3, 1)
model(x, ps, Lux.testmode(st))