-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create DataTemplate for Weights, ToolTip looks good, but general info…
… is a mess; DataTemplate stored in App.xaml because i didnt found the way to store it in separate file, as it can be stored in dictionary, but resources in dictionary must have x:Key, which isn't suitable
- Loading branch information
Showing
10 changed files
with
117 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
SightKeeper.Avalonia/ViewModels/Annotating/AnnotatorViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
SightKeeper.Avalonia/ViewModels/Annotating/AutoAnnotating/FakeAutoAnnotationViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Windows.Input; | ||
using SightKeeper.Domain.Model; | ||
using SightKeeper.Domain.Model.Common; | ||
|
||
namespace SightKeeper.Avalonia.ViewModels.Annotating.AutoAnnotating; | ||
|
||
public sealed class FakeAutoAnnotationViewModel : IAutoAnnotationViewModel | ||
{ | ||
public IReadOnlyCollection<Weights> Weights { get; } | ||
public float ProbabilityThreshold { get; set; } | ||
public float IoU { get; set; } | ||
public Weights? SelectedWeights { get; set; } | ||
public bool AutoAnnotatingEnabled { get; set; } | ||
public ICommand ClearCommand => FakeViewModel.CommandSubstitute; | ||
public ICommand AnnotateCommand => FakeViewModel.CommandSubstitute; | ||
|
||
public FakeAutoAnnotationViewModel() | ||
{ | ||
DataSet dataSet = new(""); | ||
dataSet.WeightsLibrary.CreateWeights(Array.Empty<byte>(), Array.Empty<byte>(), ModelSize.Nano, 100, 1.123f, 0.2345f, 2.3456f, Enumerable.Empty<Asset>()); | ||
dataSet.WeightsLibrary.CreateWeights(Array.Empty<byte>(), Array.Empty<byte>(), ModelSize.Small, 200, 0.623f, 0.6445f, 0.3646f, Enumerable.Empty<Asset>()); | ||
Weights = dataSet.WeightsLibrary.Weights; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
SightKeeper.Avalonia/ViewModels/Annotating/AutoAnnotating/IAutoAnnotationViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System.Collections.Generic; | ||
using System.Windows.Input; | ||
using SightKeeper.Domain.Model; | ||
|
||
namespace SightKeeper.Avalonia.ViewModels.Annotating.AutoAnnotating; | ||
|
||
public interface IAutoAnnotationViewModel | ||
{ | ||
IReadOnlyCollection<Weights> Weights { get; } | ||
float ProbabilityThreshold { get; set; } | ||
float IoU { get; set; } | ||
Weights? SelectedWeights { get; set; } | ||
bool AutoAnnotatingEnabled { get; set; } | ||
|
||
ICommand ClearCommand { get; } | ||
ICommand AnnotateCommand { get; } | ||
} |
1 change: 1 addition & 0 deletions
1
SightKeeper.Avalonia/ViewModels/Annotating/FakeAnnotatorViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
SightKeeper.Avalonia/ViewModels/Annotating/IAnnotatorViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters