Skip to content

Commit

Permalink
bugfix: kernel size
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonw committed Nov 19, 2024
1 parent c52ee0f commit abfcd02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions dacapo/experiments/tasks/hot_distance_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def __init__(self, task_config):
channels=task_config.channels,
scale_factor=task_config.scale_factor,
mask_distances=task_config.mask_distances,
kernel_size=task_config.kernel_size,
)
self.loss = HotDistanceLoss()
self.post_processor = ThresholdPostProcessor()
Expand Down
4 changes: 2 additions & 2 deletions dacapo/experiments/tasks/predictors/hot_distance_predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ def create_model(self, architecture):
"""
if architecture.dims == 2:
head = torch.nn.Conv2d(
architecture.num_out_channels, self.embedding_dims, self.kernel_size=1
architecture.num_out_channels, self.embedding_dims, self.kernel_size
)
elif architecture.dims == 3:
head = torch.nn.Conv3d(
architecture.num_out_channels, self.embedding_dims, self.kernel_size=1
architecture.num_out_channels, self.embedding_dims, self.kernel_size
)

return Model(architecture, head)
Expand Down

0 comments on commit abfcd02

Please sign in to comment.