Skip to content

Commit f699919

Browse files
committed
Fix gt annotation replacement in the annotation results
1 parent 1974c9e commit f699919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/examples/cvat/recording-oracle/src/handlers/process_intermediate_results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def transform_item(self, item: dm.DatasetItem) -> dm.DatasetItem:
266266
item = item.wrap(id=item.id[len(self._prefix) :])
267267
return item
268268

269-
prefix = BucketAccessInfo.parse_obj(self.manifest.data.data_url).path.lstrip("/\\") + "/"
269+
prefix = BucketAccessInfo.parse_obj(self.manifest.data.data_url).path.strip("/\\") + "/"
270270

271271
# Remove prefixes if it can be done safely
272272
sample_ids = {sample.id for sample in merged_dataset}

0 commit comments

Comments
 (0)