Skip to content

Commit 790514e

Browse files
committed
fix methodmodel type restriction
1 parent db94e91 commit 790514e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/methods/imagesegmentation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ end
203203

204204
# ## Training interface
205205

206-
function DLPipelines.methodmodel(method, backbone; kwargs...)
206+
function DLPipelines.methodmodel(method::ImageSegmentation, backbone; kwargs...)
207207
return UNetDynamic(
208208
backbone,
209209
(method.projections.sz..., 3, 1),

src/methods/singlekeypointregression.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ end
160160

161161
# Training interface
162162

163-
DLPipelines.methodlossfn(method::SingleKeypointRegression) = Flux.mse
163+
DLPipelines.methodlossfn(::SingleKeypointRegression) = Flux.mse
164164

165165
function DLPipelines.methodmodel(method::SingleKeypointRegression, backbone)
166166
h, w, ch, b = Flux.outdims(backbone, (method.projections.sz..., 3, 1))

0 commit comments

Comments
 (0)