ISAT package
Subpackages
- ISAT.formats package
- ISAT.segment_any package
- ISAT.utils package
- ISAT.widgets package
- Submodules
- ISAT.widgets.about_dialog module
- ISAT.widgets.annos_dock_widget module
AnnosDockWidgetAnnosDockWidget.mainwindowAnnosDockWidget.polygon_item_dictAnnosDockWidget.right_button_menu()AnnosDockWidget.generate_item_and_itemwidget()AnnosDockWidget.update_listwidget()AnnosDockWidget.update_combobox_group_select()AnnosDockWidget.listwidget_add_polygon()AnnosDockWidget.listwidget_remove_polygon()AnnosDockWidget.set_selected()AnnosDockWidget.set_polygon_selected()AnnosDockWidget.set_polygon_show()AnnosDockWidget.set_all_polygon_visible()AnnosDockWidget.set_all_polygon_lock()AnnosDockWidget.set_group_polygon_visible()AnnosDockWidget.zoom_to_group()AnnosDockWidget.go_to_next_group()AnnosDockWidget.go_to_prev_group()
- ISAT.widgets.annos_validator_dialog module
- ISAT.widgets.auto_segment_dialog module
- ISAT.widgets.canvas module
AnnotationSceneAnnotationScene.image_itemAnnotationScene.mask_itemAnnotationScene.image_dataAnnotationScene.current_graphAnnotationScene.prompt_box_itemAnnotationScene.repaint_line_itemAnnotationScene.modeAnnotationScene.draw_modeAnnotationScene.contour_modeAnnotationScene.prompt_point_positionsAnnotationScene.prompt_point_labelsAnnotationScene.prompt_point_itemsAnnotationScene.maskAnnotationScene.mask_alphaAnnotationScene.guide_line_xAnnotationScene.guide_line_yAnnotationScene.last_draw_timeAnnotationScene.draw_intervalAnnotationScene.pressedAnnotationScene.selected_polygons_listAnnotationScene.repaint_start_vertexAnnotationScene.repaint_end_vertexAnnotationScene.hovered_vertexAnnotationScene.load_image()AnnotationScene.unload_image()AnnotationScene.change_mode_to_create()AnnotationScene.change_mode_to_view()AnnotationScene.change_mode_to_edit()AnnotationScene.change_mode_to_repaint()AnnotationScene.change_contour_mode_to_save_all()AnnotationScene.change_contour_mode_to_save_max_only()AnnotationScene.change_contour_mode_to_save_external()AnnotationScene.change_contour_method_to_simple()AnnotationScene.change_contour_method_to_tc89_kcos()AnnotationScene.change_contour_method_to_none()AnnotationScene.start_segment_anything()AnnotationScene.start_segment_anything_box()AnnotationScene.start_segment_anything_visual()AnnotationScene.start_draw_polygon()AnnotationScene.start_draw()AnnotationScene.finish_draw()AnnotationScene.cancel_draw()AnnotationScene.delete_selected_graph()AnnotationScene.edit_polygon()AnnotationScene.move_polygon_to_top()AnnotationScene.move_polygon_to_bottom()AnnotationScene.copy_item()AnnotationScene.polygons_union()AnnotationScene.polygons_difference()AnnotationScene.polygons_intersection()AnnotationScene.polygons_symmetric_difference()AnnotationScene.mousePressEvent()AnnotationScene.mouseReleaseEvent()AnnotationScene.mouseMoveEvent()AnnotationScene.update_mask()AnnotationScene.backspace()
AnnotationView
- ISAT.widgets.category_dock_widget module
CategoriesDockWidgetCategoriesDockWidget.choice_category()CategoriesDockWidget.update_widget()CategoriesDockWidget.radio_choice()CategoriesDockWidget.item_choice()CategoriesDockWidget.update_current_group()CategoriesDockWidget.increase_current_group()CategoriesDockWidget.decrease_current_group()CategoriesDockWidget.toggle_group_mode()
- ISAT.widgets.category_edit_dialog module
CategoryEditDialogCategoryEditDialog.check_category_enabled()CategoryEditDialog.check_group_enabled()CategoryEditDialog.check_note_enabled()CategoryEditDialog.check_crowded_enabled()CategoryEditDialog.load_cfg()CategoryEditDialog.get_category()CategoryEditDialog.apply()CategoryEditDialog.cancel()CategoryEditDialog.closeEvent()CategoryEditDialog.reject()
- ISAT.widgets.category_setting_dialog module
CategorySettingDialogCategorySettingDialog.get_item_and_widget()CategorySettingDialog.remove_category_item()CategorySettingDialog.load_cfg()CategorySettingDialog.add_new_category()CategorySettingDialog.choice_color()CategorySettingDialog.import_cfg()CategorySettingDialog.export_cfg()CategorySettingDialog.apply()CategorySettingDialog.cancel()CategorySettingDialog.init_connect()
- ISAT.widgets.converter_dialog module
- ISAT.widgets.files_dock_widget module
- ISAT.widgets.info_dock_widget module
- ISAT.widgets.mainwindow module
QtBoxStyleProgressBarcalculate_area()SegAnyThreadSegAnyVideoThreadInitSegAnyThreadCheckLatestVersionThreadMainWindowMainWindow.image_rootMainWindow.label_rootMainWindow.files_listMainWindow.current_indexMainWindow.current_groupMainWindow.config_fileMainWindow.software_config_fileMainWindow.savedMainWindow.can_be_annotatedMainWindow.load_finishedMainWindow.polygonsMainWindow.instance_cmapMainWindow.map_modeMainWindow.current_labelMainWindow.use_segment_anythingMainWindow.use_segment_anything_videoMainWindow.use_remote_samMainWindow.group_select_modeMainWindow.init_segment_anything()MainWindow.init_sam_finish()MainWindow.sam_encoder_finish()MainWindow.SeganyEnabled()MainWindow.seg_video_start()MainWindow.seg_video_finish()MainWindow.predict_current_image_with_text_prompt()MainWindow.predict_current_image_with_visual_prompt()MainWindow.mask_to_polygon()MainWindow.init_ui()MainWindow.statusbar_change_status()MainWindow.translate()MainWindow.change_language()MainWindow.reload_cfg()MainWindow.load_actions_shortcut()MainWindow.set_saved_state()MainWindow.open_dir()MainWindow.save_dir()MainWindow.save()MainWindow.update_group_display()MainWindow.show_image()MainWindow.prev_image()MainWindow.next_image()MainWindow.jump_to()MainWindow.category_setting()MainWindow.change_bit_map_to_semantic()MainWindow.change_bit_map_to_instance()MainWindow.change_bit_map_to_label()MainWindow.change_bit_map()MainWindow.set_labels_visible()MainWindow.model_manage()MainWindow.remote_sam()MainWindow.change_bfloat16_state()MainWindow.change_use_video_segmentation_state()MainWindow.change_contour_mode()MainWindow.change_contour_method()MainWindow.change_mask_alpha()MainWindow.change_polygon_alpha_hover()MainWindow.change_polygon_alpha_no_hover()MainWindow.change_vertex_size()MainWindow.change_auto_save_state()MainWindow.change_real_time_area_state()MainWindow.change_edge_state()MainWindow.change_approx_polygon_state()MainWindow.change_create_mode_invisible_polygon_state()MainWindow.change_saturation()MainWindow.change_prompt_visiable()MainWindow.converter()MainWindow.video2frames()MainWindow.auto_segment()MainWindow.annos_validator()MainWindow.process_exif()MainWindow.shortcut()MainWindow.about()MainWindow.setting()MainWindow.screen_shot()MainWindow.save_cfg()MainWindow.save_software_cfg()MainWindow.open_docs()MainWindow.exit()MainWindow.closeEvent()MainWindow.latest_version_tip()MainWindow.create_desktop_shortcut()MainWindow.init_connect()MainWindow.reset_action()
- ISAT.widgets.model_manager_dialog module
DownloadThreadModelManagerDialogModelManagerDialog.init_ui()ModelManagerDialog.update_ui()ModelManagerDialog.download()ModelManagerDialog.download_process()ModelManagerDialog.pause()ModelManagerDialog.delete()ModelManagerDialog.clear_tmp()ModelManagerDialog.open_checkpoint_dir()ModelManagerDialog.load_fine_tuned_model()ModelManagerDialog.use_fine_tune_model()
- ISAT.widgets.plugin_base module
PluginBasePluginBase.init_plugin()PluginBase.enable_plugin()PluginBase.disable_plugin()PluginBase.get_plugin_author()PluginBase.get_plugin_version()PluginBase.get_plugin_description()PluginBase.get_plugin_name()PluginBase.activate_state_changed()PluginBase.before_image_open_event()PluginBase.after_image_open_event()PluginBase.before_annotation_start_event()PluginBase.after_annotation_created_event()PluginBase.after_annotation_changed_event()PluginBase.before_annotations_save_event()PluginBase.after_annotations_saved_event()PluginBase.after_sam_encode_finished_event()PluginBase.on_mouse_move_event()PluginBase.on_mouse_press_event()PluginBase.on_mouse_release_event()PluginBase.on_mouse_pressed_and_mouse_move_event()PluginBase.application_start_event()PluginBase.application_shutdown_event()
- ISAT.widgets.plugin_manager_dialog module
PluginManagerDialogPluginManagerDialog.load_plugins()PluginManagerDialog.update_gui()PluginManagerDialog.trigger_before_image_open()PluginManagerDialog.trigger_after_image_open()PluginManagerDialog.trigger_before_annotation_start()PluginManagerDialog.trigger_after_annotation_created()PluginManagerDialog.trigger_after_annotation_changed()PluginManagerDialog.trigger_before_annotations_save()PluginManagerDialog.trigger_after_annotations_saved()PluginManagerDialog.trigger_after_sam_encode_finished()PluginManagerDialog.trigger_on_mouse_move()PluginManagerDialog.trigger_on_mouse_release()PluginManagerDialog.trigger_on_mouse_press()PluginManagerDialog.trigger_on_mouse_pressed_and_mouse_move()PluginManagerDialog.trigger_application_start()PluginManagerDialog.trigger_application_shutdown()
- ISAT.widgets.polygon module
PromptPointVertexPolygonPolygon.line_widthPolygon.hover_alphaPolygon.nohover_alphaPolygon.pointsPolygon.verticesPolygon.is_drawingPolygon.categoryPolygon.groupPolygon.iscrowdPolygon.notePolygon.areaPolygon.addPoint()Polygon.movePoint()Polygon.removePoint()Polygon.delete()Polygon.moveVertex()Polygon.itemChange()Polygon.hoverEnterEvent()Polygon.hoverLeaveEvent()Polygon.mouseDoubleClickEvent()Polygon.redraw()Polygon.change_color()Polygon.set_drawed()Polygon.calculate_area()Polygon.load_object()Polygon.to_object()
LineVertexLineRectVertexRect
- ISAT.widgets.process_exif_dialog module
- ISAT.widgets.remote_sam_dialog module
- ISAT.widgets.right_button_menu module
- ISAT.widgets.setting_dialog module
- ISAT.widgets.shortcut_dialog module
- ISAT.widgets.switch_button module
- ISAT.widgets.text_prompt_dock_widget module
- ISAT.widgets.video_to_frames_dialog module
- ISAT.widgets.visuall_prompt_dock_widget module
- Module contents
Submodules
ISAT.annotation module
- class ISAT.annotation.Object(category, group, segmentation, area, layer, bbox, iscrowd=False, note='')
Bases:
objectA class to represent an annotation object.
- Parameters:
category (str) – The category of the object.
group (int) – The group of the object.
segmentation (list | tuple) – The vertices of the object.[(x1, y1), (x2, y2), …]
area (float) – The area of the object.
layer (int) – The layer of the object.
bbox (list | tuple) – The bbox of the object. [xmin, ymin, xmax, ymax]
iscrowd (bool) – The crowd tag of the object.
note (str) – The note of the object.
- class ISAT.annotation.Annotation(image_path, label_path)
Bases:
objectA class to represent an annotation containing many objects.
- Parameters:
image_path (str) – The path to the image.
label_path (str) – The path to the label file.
- description
Always ‘ISAT’.
- Type:
str
- img_folder
The path to the folder where the images are located.
- Type:
str
- img_name
The name of the image.
- Type:
str
- label_path
The path to the label file.
- Type:
str
- note
The note of the image.
- Type:
str
- height
The height of the image.
- Type:
int
- width
The width of the image.
- Type:
int
- depth
The depth of the image.
- Type:
int
- load_annotation()
Load annotation from self.label_path
- save_annotation()
Save annotation to self.label_path
ISAT.configs module
- ISAT.configs.load_config(file)
Load config file
- Parameters:
file (str) – config file path
- Returns:
config dict
- Return type:
dict
- ISAT.configs.save_config(cfg, file)
Save config file
- Parameters:
cfg (dict) – config dict
file (str) – config file path
- Return type:
None
- class ISAT.configs.STATUSMode(value)
Bases:
EnumThe status mode
- VIEW = 0
- CREATE = 1
- EDIT = 2
- REPAINT = 3
- class ISAT.configs.DRAWMode(value)
Bases:
EnumThe draw mode.
- POLYGON = 0
Manually draw polygon
- SEGMENTANYTHING_POINT = 1
Segment anything with point prompt.
- SEGMENTANYTHING_BOX = 2
Segment anything with box prompt.
- SEGMENTANYTHING_VISUAL = 3
Segment anything with visual prompt.
ISAT.main module
- ISAT.main.main()