azizinaghsh
commited on
Commit
·
2868f4f
1
Parent(s):
bbcccf9
fix typo
Browse files- utils/common_viz.py +1 -1
utils/common_viz.py
CHANGED
@@ -103,7 +103,7 @@ def get_batch(
|
|
103 |
batch["caption_raw"] = [prompt]
|
104 |
batch["caption_feat"] = caption_feat
|
105 |
|
106 |
-
|
107 |
[float(coord) for coord in character_position.strip("[]").split(",")],
|
108 |
device=device,
|
109 |
)
|
|
|
103 |
batch["caption_raw"] = [prompt]
|
104 |
batch["caption_feat"] = caption_feat
|
105 |
|
106 |
+
character_position = torch.tensor(
|
107 |
[float(coord) for coord in character_position.strip("[]").split(",")],
|
108 |
device=device,
|
109 |
)
|