Skip to content

Commit a77156a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ede6394 commit a77156a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

monai/networks/nets/milmodel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import torch
1717
import torch.nn as nn
1818

19-
from monai.utils import first, optional_import
19+
from monai.utils import optional_import
2020

2121
models, _ = optional_import("torchvision.models")
2222

monai/networks/nets/torchvision_fc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def __init__(
113113
**kwargs,
114114
):
115115
# if pretrained is False, weights is a weight tensor or None for no pretrained loading
116-
if pretrained and weights is None:
116+
if pretrained and weights is None:
117117
weights = "DEFAULT"
118118

119119
model = getattr(models, model_name)(weights=weights, **kwargs)

0 commit comments

Comments
 (0)