Skip to content

Commit b87b24f

Browse files
Merge pull request #1910 from kili-technology/feature/lab-3763-aau-i-can-export-text-projects-from-the-sdk-lts
[lts] fix(LAB-3763): call convert_to_pixel_coords only for accepted input types
2 parents c6e4764 + 5dc5522 commit b87b24f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kili/services/export/format/kili/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def _cut_video_assets(self, assets: List[Dict]) -> List[Dict]:
107107
def process_and_save(self, assets: List[Dict], output_filename: Path) -> None:
108108
"""Extract formatted annotations from labels and save the json in the buckets."""
109109
clean_assets = self.preprocess_assets(assets)
110-
if self.project["inputType"] != "LLM_RLHF":
110+
if self.project["inputType"] in ["IMAGE", "VIDEO", "PDF"]:
111111
for i, asset in enumerate(clean_assets):
112112
clean_assets[i] = self.convert_to_pixel_coords(asset)
113113
clean_assets[i] = _clean_json_response(asset)

0 commit comments

Comments
 (0)