Skip to content

Commit

Permalink
Larger space kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Jan 29, 2024
1 parent beab66e commit 4dd7492
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pvnet/models/multimodal/encoders/encoders3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(
super().__init__(sequence_length, image_size_pixels, in_channels, out_features)

# Check that the output shape of the convolutional layers will be at least 1x1
cnn_spatial_output_size = image_size_pixels - 8 * number_of_conv3d_layers
cnn_spatial_output_size = image_size_pixels - 12 * number_of_conv3d_layers
cnn_sequence_length = sequence_length - 4 * number_of_conv3d_layers
if not (cnn_spatial_output_size >= 1):
raise ValueError(
Expand All @@ -51,7 +51,7 @@ def __init__(
nn.Conv3d(
in_channels=in_channels,
out_channels=conv3d_channels,
kernel_size=(5, 9, 9),
kernel_size=(7, 13, 13),
padding=(0, 0, 0),
),
nn.ELU(),
Expand All @@ -61,7 +61,7 @@ def __init__(
nn.Conv3d(
in_channels=conv3d_channels,
out_channels=conv3d_channels,
kernel_size=(5, 9, 9),
kernel_size=(7, 13, 13),
padding=(0, 0, 0),
),
nn.ELU(),
Expand Down

0 comments on commit 4dd7492

Please sign in to comment.