Skip to content

Commit

Permalink
auto updates (#7760)
Browse files Browse the repository at this point in the history
Signed-off-by: monai-bot <monai.miccai2019@gmail.com>

Signed-off-by: monai-bot <monai.miccai2019@gmail.com>
  • Loading branch information
monai-bot authored May 13, 2024
1 parent 4af2306 commit ab4bd43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion monai/data/video_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def get_available_codecs() -> dict[str, str]:
for codec, ext in all_codecs.items():
writer = cv2.VideoWriter()
fname = os.path.join(tmp_dir, f"test{ext}")
fourcc = cv2.VideoWriter_fourcc(*codec) # type: ignore[attr-defined]
fourcc = cv2.VideoWriter_fourcc(*codec)
noviderr = writer.open(fname, fourcc, 1, (10, 10))
if noviderr:
codecs[codec] = ext
Expand Down
4 changes: 2 additions & 2 deletions monai/networks/nets/daf3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def __init__(self, in_planes, planes, spatial_dims=3, stride=1, downsample=None)
self.conv2 = conv_type(planes, planes, kernel_size=3, padding=1, stride=stride, groups=32, bias=False)

# adapt activation function
self.relu = nn.PReLU() # type: ignore
self.relu = nn.PReLU()


class Daf3dResNetDilatedBottleneck(Daf3dResNetBottleneck):
Expand Down Expand Up @@ -287,7 +287,7 @@ def __init__(
n_input_channels, self.in_planes, kernel_size=7, stride=(1, 2, 2), padding=(3, 3, 3), bias=False
)
self.bn1 = norm_type(32, 64)
self.relu = nn.PReLU() # type: ignore
self.relu = nn.PReLU()

# adapt layers to our needs
self.layer1 = self._make_layer(Daf3dResNetBottleneck, block_inplanes[0], layers[0], spatial_dims, shortcut_type)
Expand Down

0 comments on commit ab4bd43

Please sign in to comment.