Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit 8e76638

Browse files
committed
Applied Formatting
1 parent 00e3c8e commit 8e76638

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

generative/networks/nets/patchgan_discriminator.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import torch
1818
import torch.nn as nn
1919
from monai.networks.blocks import Convolution
20-
from monai.networks.layers import (Act, get_pool_layer)
20+
from monai.networks.layers import Act, get_pool_layer
2121

2222

2323
class MultiScalePatchDiscriminator(nn.Sequential):
@@ -84,7 +84,9 @@ def __init__(
8484
if pooling_method is None:
8585
pool = None
8686
else:
87-
pool = get_pool_layer((pooling_method, {"kernel_size": kernel_size, "stride": 2}), spatial_dims=spatial_dims)
87+
pool = get_pool_layer(
88+
(pooling_method, {"kernel_size": kernel_size, "stride": 2}), spatial_dims=spatial_dims
89+
)
8890
print(
8991
f"Initialising {spatial_dims}D MultiScalePatchDiscriminator with {self.num_d} discriminators, {self.num_layers_d} layers and pooling method {pool.__class__.__name__}."
9092
)

0 commit comments

Comments
 (0)