Skip to content

Commit

Permalink
cycle option
Browse files Browse the repository at this point in the history
  • Loading branch information
nnaakkaaii committed Jun 28, 2024
1 parent 3ddbe37 commit 35177d1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions hrdae/models/networks/r_dae.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ def create_rdae2d(out_channels: int, opt: RDAE2dOption) -> nn.Module:
motion_encoder = create_motion_encoder1d(
opt.latent_dim, opt.debug_show_dim, opt.motion_encoder
)
if opt.cycle:
return CycleRDAE2d(
opt.in_channels,
out_channels,
opt.hidden_channels,
opt.latent_dim,
opt.conv_params,
motion_encoder,
opt.activation,
opt.aggregator,
opt.debug_show_dim,
)
return RDAE2d(
opt.in_channels,
out_channels,
Expand All @@ -57,6 +69,18 @@ def create_rdae3d(out_channels: int, opt: RDAE3dOption) -> nn.Module:
motion_encoder = create_motion_encoder2d(
opt.latent_dim, opt.debug_show_dim, opt.motion_encoder
)
if opt.cycle:
return CycleRDAE3d(
opt.in_channels,
out_channels,
opt.hidden_channels,
opt.latent_dim,
opt.conv_params,
motion_encoder,
opt.activation,
opt.aggregator,
opt.debug_show_dim,
)
return RDAE3d(
opt.in_channels,
out_channels,
Expand Down

0 comments on commit 35177d1

Please sign in to comment.