Spaces:
Running
Running
eranlevinlt
commited on
Commit
•
af41e07
1
Parent(s):
7f8a00d
fix compatability issues with python 3.9
Browse files
xora/models/autoencoders/causal_video_autoencoder.py
CHANGED
@@ -255,7 +255,7 @@ class Encoder(nn.Module):
|
|
255 |
dims: Union[int, Tuple[int, int]] = 3,
|
256 |
in_channels: int = 3,
|
257 |
out_channels: int = 3,
|
258 |
-
blocks: List[Tuple[str, int
|
259 |
base_channels: int = 128,
|
260 |
norm_num_groups: int = 32,
|
261 |
patch_size: Union[int, Tuple[int]] = 1,
|
@@ -446,7 +446,7 @@ class Decoder(nn.Module):
|
|
446 |
dims,
|
447 |
in_channels: int = 3,
|
448 |
out_channels: int = 3,
|
449 |
-
blocks: List[Tuple[str, int
|
450 |
base_channels: int = 128,
|
451 |
layers_per_block: int = 2,
|
452 |
norm_num_groups: int = 32,
|
|
|
255 |
dims: Union[int, Tuple[int, int]] = 3,
|
256 |
in_channels: int = 3,
|
257 |
out_channels: int = 3,
|
258 |
+
blocks: List[Tuple[str, Union[int, dict]]] = [("res_x", 1)],
|
259 |
base_channels: int = 128,
|
260 |
norm_num_groups: int = 32,
|
261 |
patch_size: Union[int, Tuple[int]] = 1,
|
|
|
446 |
dims,
|
447 |
in_channels: int = 3,
|
448 |
out_channels: int = 3,
|
449 |
+
blocks: List[Tuple[str, Union[int, dict]]] = [("res_x", 1)],
|
450 |
base_channels: int = 128,
|
451 |
layers_per_block: int = 2,
|
452 |
norm_num_groups: int = 32,
|