Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
./README.md:status
--8<--

🔥 [IJCAI 2024: 任意三维几何外形车辆的风阻快速预测竞赛](https://competition.atomgit.com/competitionInfo?id=7f3f276465e9e845fd3a811d2d6925b5),欢迎报名参赛。

<style>
.container {
display: flex;
Expand Down
22 changes: 11 additions & 11 deletions ppsci/arch/cuboid_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ def forward(self, x):
"""x --> [K x Conv2D] --> PatchMerge

Args:
x : (B, T, H, W, C)
x: (B, T, H, W, C)

Returns:
out : (B, T, H_new, W_new, C_out)
out: (B, T, H_new, W_new, C_out)
"""

B, T, H, W, C = x.shape
Expand Down Expand Up @@ -178,10 +178,10 @@ def forward(self, x):
"""x --> Upsample --> [K x Conv2D]

Args:
x : (B, T, H, W, C)
x: (B, T, H, W, C)

Returns:
out : (B, T, H_new, W_new, C)
out: (B, T, H_new, W_new, C)
"""

x = self.upsample(x)
Expand Down Expand Up @@ -286,10 +286,10 @@ def forward(self, x):
"""x --> [K x Conv2D] --> PatchMerge --> ... --> [K x Conv2D] --> PatchMerge

Args:
x : (B, T, H, W, C)
x: (B, T, H, W, C)

Returns:
out : (B, T, H_new, W_new, C_out)
out: (B, T, H_new, W_new, C_out)
"""

for i, (conv_block, patch_merge) in enumerate(
Expand Down Expand Up @@ -400,10 +400,10 @@ def forward(self, x):
"""x --> Upsample --> [K x Conv2D] --> ... --> Upsample --> [K x Conv2D]

Args:
x : Shape (B, T, H, W, C)
x: Shape (B, T, H, W, C)

Returns:
out : Shape (B, T, H_new, W_new, C)
out: Shape (B, T, H_new, W_new, C)
"""
for i, (conv_block, upsample) in enumerate(
zip(self.conv_block_list, self.upsample_list)
Expand Down Expand Up @@ -915,10 +915,10 @@ def get_initial_z(self, final_mem, T_out):
def forward(self, x, verbose=False):
"""
Args:
x : Shape (B, T, H, W, C)
verbos : if True, print intermediate shapes
x: Shape (B, T, H, W, C)
verbose: if True, print intermediate shapes
Returns:
out : The output Shape (B, T_out, H, W, C_out)
out: The output Shape (B, T_out, H, W, C_out)
"""

x = self.concat_to_tensor(x, self.input_keys)
Expand Down