Skip to content

Commit 0842725

Browse files
committed
address issue with generation with 1 quantizer, thanks to @MarcusLoppe
1 parent b0b341e commit 0842725

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

meshgpt_pytorch/meshgpt_pytorch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@ def generate(
13081308
# remove a potential extra token from eos, if breaked early
13091309

13101310
code_len = codes.shape[-1]
1311-
round_down_code_len = code_len // self.num_quantizers * self.num_quantizers
1311+
round_down_code_len = code_len // self.num_vertices_per_face * self.num_vertices_per_face
13121312
codes = codes[:, :round_down_code_len]
13131313

13141314
# early return of raw residual quantizer codes

meshgpt_pytorch/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.2.12'
1+
__version__ = '1.2.14'

0 commit comments

Comments
 (0)