Tags: asyml/forte
Tags
Bump version to 0.3.0.dev3 (#903) * Bump version to 0.3.0.dev3 * Bound transformers version to pass CI * Fix CI timeout error Co-authored-by: Suqi Sun <[email protected]>
Bump version to 0.3.0.dev2 (#843) * Bump version to 0.3.0.dev2 * Fix bug in data_store_test.py Co-authored-by: Suqi Sun <[email protected]>
Bounding box (#813) * add Sketch class in forte/data/ontology/top.py * add hash function docstring in Sketch class in forte/data/ontology/top.py * add Sketch class in the __init__ variable in forte/data/ontology/top.py * black * add docstring for 'Sketch' in forte/data/ontology/top.py * add index_key() for 'Sketch' in forte/data/ontology/top.py * black format and add Grids * fix docstring for Sketch in forte/data/ontology/top.py * Sketch -> ImageAnnotation * only keep essential class variables: image_annotations, grids and payloads * remove array data from Grids * minor changes on class variables of Grids * add test cases for grids and image annotation * update docstring in forte/data/ontology/top.py * update grids test * grid_config -> height_n_width and associate Grids to payload * black * correct height_n_width constraint * remove the wrong import * add Grids in __init__ * debugged the parameter issues height_n_width -> height, width two paramters * adjust the test cases accordingly based on code changes * add tests for raise ValueErrror * pylint * pylint: line length * pylint * pylint * remove index_key() and move up super().__init__(pack) * self.height -> self._height and self.width -> self._width * rewrite __eq__() * remove hash function for ImageAnnotation and Grids * keep only one image_payload_idx in Grids and make it required in __init__ * add docstring in get_grid_cell and remove condition for checking image_payload_idx is None * adjust grids test accordingly * update docstring * remove wrong import * Region -> Box -> BoundingBox * example for checking overlapping between bounging boxes * add link between BoundingBox and Text externally * add function compute_iou() for Box and Region * add example code for compute_iou() * remove auto imports and adjust __init__ order * image_annotation and grids: SortedList -> List * add docstrings for BoundingBox related classes * add more definitions for overlapping * update image_payload_idx default values * inline BoundingBox init * inline BoundingBox init * add index definition to more places * add ImageAnnotation to SinglePackEntries * add BoundingBox related ontologies to __init__ * add BoundingBox related ontologies to __init__ * change docstring locations of bounding box related entries * add -> append * SortedList -> List for self.image_annotations and self.grids * add units for indices * fix pylint error
PreviousNext