Skip to content

Commit

Permalink
chore: update ConvMixer to latest deps
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Nov 8, 2024
1 parent d68581a commit 54e84ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/ConvMixer/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ LuxCUDA = "0.3.2"
MLDatasets = "0.7.14"
MLUtils = "0.4.4"
OneHotArrays = "0.2.5"
Optimisers = "0.3.3, 0.4"
Optimisers = "0.4"
PreferenceTools = "0.1.2"
Printf = "1.10"
ProgressBars = "1.5.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/ConvMixer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ julia --startup-file=no \
--threads=auto \
main.jl \
--lr-max=0.05 \
--weight-decay=0.000005
--weight-decay=0.0001
```

Here's an example of the output of the above command (on a V100 32GB GPU):
Expand Down
6 changes: 3 additions & 3 deletions examples/ConvMixer/main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ function get_dataloaders(batchsize)
cifar10_std = (0.2471, 0.2435, 0.2616)

train_transform = RandomResizeCrop((32, 32)) |>
Maybe(FlipX()) |>
Maybe(FlipX{2}()) |>
ImageToTensor() |>
Normalize(cifar10_mean, cifar10_std)

test_transform = ImageToTensor() |> Normalize(cifar10_mean, cifar10_std)

trainset = TensorDataset(CIFAR10(:train), train_transform)
trainloader = DataLoader(trainset; batchsize, shuffle=true, buffer=true, parallel=true)
trainloader = DataLoader(trainset; batchsize, shuffle=true, parallel=true)

testset = TensorDataset(CIFAR10(:test), test_transform)
testloader = DataLoader(testset; batchsize, shuffle=false, buffer=true, parallel=true)
testloader = DataLoader(testset; batchsize, shuffle=false, parallel=true)

return trainloader, testloader
end
Expand Down

0 comments on commit 54e84ff

Please sign in to comment.