This repository was archived by the owner on Nov 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +73
-16
lines changed Expand file tree Collapse file tree 4 files changed +73
-16
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ public class ModelFileViewModel : INotifyPropertyChanged
1313 private int ? _intraOpNumThreads ;
1414 private ExecutionMode ? _executionMode ;
1515 private ExecutionProvider ? _executionProvider ;
16+ private OnnxModelPrecision ? _precision ;
17+ private int _requiredMemory ;
1618 private bool _isOverrideEnabled ;
1719 private bool _hasChanged ;
1820
@@ -52,6 +54,18 @@ public ExecutionProvider? ExecutionProvider
5254 set { _executionProvider = value ; NotifyPropertyChanged ( ) ; }
5355 }
5456
57+ public OnnxModelPrecision ? Precision
58+ {
59+ get { return _precision ; }
60+ set { _precision = value ; NotifyPropertyChanged ( ) ; }
61+ }
62+
63+ public int RequiredMemory
64+ {
65+ get { return _requiredMemory ; }
66+ set { _requiredMemory = value ; NotifyPropertyChanged ( ) ; }
67+ }
68+
5569 public bool IsOverrideEnabled
5670 {
5771 get { return _isOverrideEnabled ; }
Original file line number Diff line number Diff line change @@ -101,9 +101,9 @@ public static UpdateFeatureExtractorModelSetViewModel FromModelSet(FeatureExtrac
101101
102102 ControlNetType = controlNetType ,
103103 ModelFile = modelset . FeatureExtractorConfig . OnnxModelPath ,
104- Normalize = modelset . FeatureExtractorConfig . Normalize ,
104+ Normalize = modelset . FeatureExtractorConfig . NormalizeOutput ,
105105 SampleSize = modelset . FeatureExtractorConfig . SampleSize ,
106- Channels = modelset . FeatureExtractorConfig . Channels ,
106+ Channels = modelset . FeatureExtractorConfig . OutputChannels ,
107107 } ;
108108 }
109109
@@ -120,8 +120,8 @@ public static FeatureExtractorModelSet ToModelSet(UpdateFeatureExtractorModelSet
120120 IntraOpNumThreads = modelset . IntraOpNumThreads ,
121121 FeatureExtractorConfig = new FeatureExtractorModelConfig
122122 {
123- Channels = modelset . Channels ,
124- Normalize = modelset . Normalize ,
123+ OutputChannels = modelset . Channels ,
124+ NormalizeOutput = modelset . Normalize ,
125125 SampleSize = modelset . SampleSize ,
126126 OnnxModelPath = modelset . ModelFile
127127 }
You can’t perform that action at this time.
0 commit comments