lazylabel-gui 1.2.0__tar.gz → 1.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lazylabel_gui-1.2.0/src/lazylabel_gui.egg-info → lazylabel_gui-1.2.1}/PKG-INFO +1 -1
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/pyproject.toml +1 -1
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/main_window.py +13 -12
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1/src/lazylabel_gui.egg-info}/PKG-INFO +1 -1
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/LICENSE +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/README.md +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/setup.cfg +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/__init__.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/__main__.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/config/__init__.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/config/hotkeys.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/config/paths.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/config/settings.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/core/__init__.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/core/file_manager.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/core/model_manager.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/core/segment_manager.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/main.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/models/__init__.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/models/sam2_model.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/models/sam_model.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/__init__.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/control_panel.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/editable_vertex.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/hotkey_dialog.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/hoverable_pixelmap_item.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/hoverable_polygon_item.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/numeric_table_widget_item.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/photo_viewer.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/reorderable_class_table.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/right_panel.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/widgets/__init__.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/widgets/adjustments_widget.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/widgets/border_crop_widget.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/widgets/channel_threshold_widget.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/widgets/fft_threshold_widget.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/widgets/fragment_threshold_widget.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/widgets/model_selection_widget.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/widgets/settings_widget.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/widgets/status_bar.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/utils/__init__.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/utils/custom_file_system_model.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/utils/logger.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/utils/utils.py +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel_gui.egg-info/SOURCES.txt +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel_gui.egg-info/dependency_links.txt +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel_gui.egg-info/entry_points.txt +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel_gui.egg-info/requires.txt +0 -0
- {lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel_gui.egg-info/top_level.txt +0 -0
@@ -789,9 +789,15 @@ class MainWindow(QMainWindow):
|
|
789
789
|
# Update the main window's settings object with the latest from the widget
|
790
790
|
self.settings.update(**self.control_panel.settings_widget.get_settings())
|
791
791
|
|
792
|
-
#
|
792
|
+
# When operate on view setting changes, we need to force SAM model to update
|
793
|
+
# with proper scale factor recalculation via the worker thread
|
793
794
|
if self.current_image_path:
|
794
|
-
|
795
|
+
# Mark SAM as dirty and reset scale factor to force proper recalculation
|
796
|
+
self.sam_is_dirty = True
|
797
|
+
self.sam_scale_factor = 1.0 # Reset to default
|
798
|
+
self.current_sam_hash = None # Invalidate cache
|
799
|
+
# Use the worker thread to properly calculate scale factor
|
800
|
+
self._ensure_sam_updated()
|
795
801
|
|
796
802
|
def _handle_image_adjustment_changed(self):
|
797
803
|
"""Handle changes in image adjustments (brightness, contrast, gamma)."""
|
@@ -2613,14 +2619,6 @@ class MainWindow(QMainWindow):
|
|
2613
2619
|
self.main_splitter.setSizes([250, 800, 350])
|
2614
2620
|
|
2615
2621
|
# Additional methods for new features
|
2616
|
-
def _handle_settings_changed(self):
|
2617
|
-
"""Handle changes in settings, e.g., 'Operate On View'."""
|
2618
|
-
# Update the main window's settings object with the latest from the widget
|
2619
|
-
self.settings.update(**self.control_panel.settings_widget.get_settings())
|
2620
|
-
|
2621
|
-
# Re-load the current image to apply the new 'Operate On View' setting
|
2622
|
-
if self.current_image_path:
|
2623
|
-
self._update_sam_model_image()
|
2624
2622
|
|
2625
2623
|
def _handle_channel_threshold_changed(self):
|
2626
2624
|
"""Handle changes in channel thresholding - optimized to avoid unnecessary work."""
|
@@ -3379,9 +3377,9 @@ class MainWindow(QMainWindow):
|
|
3379
3377
|
self.current_sam_hash = None # Invalidate cache
|
3380
3378
|
self.sam_scale_factor = 1.0
|
3381
3379
|
|
3382
|
-
# Clear all points
|
3380
|
+
# Clear all points but preserve segments
|
3383
3381
|
self.clear_all_points()
|
3384
|
-
|
3382
|
+
# Note: Segments are preserved when switching models
|
3385
3383
|
self._update_all_lists()
|
3386
3384
|
|
3387
3385
|
# Clear preview items
|
@@ -3431,6 +3429,9 @@ class MainWindow(QMainWindow):
|
|
3431
3429
|
if hasattr(self, "status_bar"):
|
3432
3430
|
self.status_bar.clear_message()
|
3433
3431
|
|
3432
|
+
# Redisplay segments after model switch to restore visual representation
|
3433
|
+
self._display_all_segments()
|
3434
|
+
|
3434
3435
|
def _transform_display_coords_to_sam_coords(self, pos):
|
3435
3436
|
"""Transform display coordinates to SAM model coordinates.
|
3436
3437
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/widgets/channel_threshold_widget.py
RENAMED
File without changes
|
{lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/widgets/fft_threshold_widget.py
RENAMED
File without changes
|
{lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/widgets/fragment_threshold_widget.py
RENAMED
File without changes
|
{lazylabel_gui-1.2.0 → lazylabel_gui-1.2.1}/src/lazylabel/ui/widgets/model_selection_widget.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|