Skip to content

Commit ab4bd43

Browse files
authored
auto updates (#7760)
Signed-off-by: monai-bot <[email protected]> Signed-off-by: monai-bot <[email protected]>
1 parent 4af2306 commit ab4bd43

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

monai/data/video_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def get_available_codecs() -> dict[str, str]:
177177
for codec, ext in all_codecs.items():
178178
writer = cv2.VideoWriter()
179179
fname = os.path.join(tmp_dir, f"test{ext}")
180-
fourcc = cv2.VideoWriter_fourcc(*codec) # type: ignore[attr-defined]
180+
fourcc = cv2.VideoWriter_fourcc(*codec)
181181
noviderr = writer.open(fname, fourcc, 1, (10, 10))
182182
if noviderr:
183183
codecs[codec] = ext

monai/networks/nets/daf3d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def __init__(self, in_planes, planes, spatial_dims=3, stride=1, downsample=None)
196196
self.conv2 = conv_type(planes, planes, kernel_size=3, padding=1, stride=stride, groups=32, bias=False)
197197

198198
# adapt activation function
199-
self.relu = nn.PReLU() # type: ignore
199+
self.relu = nn.PReLU()
200200

201201

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

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

0 commit comments

Comments
 (0)