fix dataset explorer view

This commit is contained in:
Oleksandr Bezdieniezhnykh
2025-09-29 17:37:34 +03:00
parent 5500bda6ce
commit 3a6ed60ea0
3 changed files with 24 additions and 22 deletions
+3 -2
View File
@@ -195,11 +195,12 @@ public partial class DatasetExplorer
ThumbnailsView.SelectedIndex = index;
var ann = CurrentAnnotation.Annotation;
ExplorerEditor.SetBackground(await ann.ImagePath.OpenImage());
var image = await ann.ImagePath.OpenImage();
ExplorerEditor.SetBackground(image);
SwitchTab(toEditor: true);
ExplorerEditor.RemoveAllAnns();
ExplorerEditor.CreateDetections(ann, _appConfig.AnnotationConfig.DetectionClasses, ExplorerEditor.RenderSize);
ExplorerEditor.CreateDetections(ann, _appConfig.AnnotationConfig.DetectionClasses, new Size(image.PixelWidth, image.PixelHeight));
}
catch (Exception e)
{