azizinaghsh
commited on
Commit
·
8d93e3b
1
Parent(s):
2868f4f
revised character position
Browse files- utils/common_viz.py +2 -2
utils/common_viz.py
CHANGED
@@ -108,8 +108,8 @@ def get_batch(
|
|
108 |
device=device,
|
109 |
)
|
110 |
|
111 |
-
batch['char_feat'] = character_position.unsqueeze(
|
112 |
-
batch['char_raw']['char_raw_feat'] = character_position.unsqueeze(
|
113 |
batch['char_raw']['char_vertices'] = torch.zeros_like(batch['char_raw']['char_vertices'])
|
114 |
batch['char_raw']['char_faces'] = torch.zeros_like(batch['char_raw']['char_faces'])
|
115 |
|
|
|
108 |
device=device,
|
109 |
)
|
110 |
|
111 |
+
batch['char_feat'] = character_position.unsqueeze(-1).repeat(1, 1, 300)
|
112 |
+
batch['char_raw']['char_raw_feat'] = character_position.unsqueeze(-1).repeat(1, 1, 300)
|
113 |
batch['char_raw']['char_vertices'] = torch.zeros_like(batch['char_raw']['char_vertices'])
|
114 |
batch['char_raw']['char_faces'] = torch.zeros_like(batch['char_raw']['char_faces'])
|
115 |
|