Skip to content
This repository was archived by the owner on Sep 28, 2024. It is now read-only.

Commit e9b107e

Browse files
committed
reduce default values
1 parent d7e211e commit e9b107e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

example/SuperResolution/src/SuperResolution.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ include("models.jl")
1616
function update_model!(model_file_path, model)
1717
model = cpu(model)
1818
jldsave(model_file_path; model)
19-
@warn "model updated!"
19+
@info "model updated!"
2020
end
2121

2222
function get_model()

example/SuperResolution/src/models.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function train_mno(; cuda=true, η=1f-3, λ=1f-4, epochs=50)
6060
return m
6161
end
6262

63-
function train_gno(; channel=64, cuda=true, η=1f-3, λ=1f-4, epochs=50, batchsize=64)
63+
function train_gno(; channel=16, cuda=true, η=1f-3, λ=1f-4, epochs=50, batchsize=16)
6464
# GPU config
6565
if cuda && CUDA.has_cuda()
6666
device = gpu
@@ -79,12 +79,12 @@ function train_gno(; channel=64, cuda=true, η=1f-3, λ=1f-4, epochs=50, batchsi
7979
fg = FeaturedGraph(g)
8080

8181
m = Chain(
82-
Dense(1, 64),
82+
Dense(1, channel),
8383
WithGraph(fg, GraphKernel(Dense(2channel, channel, gelu), channel)),
8484
WithGraph(fg, GraphKernel(Dense(2channel, channel, gelu), channel)),
8585
WithGraph(fg, GraphKernel(Dense(2channel, channel, gelu), channel)),
8686
WithGraph(fg, GraphKernel(Dense(2channel, channel, gelu), channel)),
87-
Dense(64, 1),
87+
Dense(channel, 1),
8888
) |> device
8989

9090
# optimizer

0 commit comments

Comments
 (0)