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
13
13
private int ? _intraOpNumThreads ;
14
14
private ExecutionMode ? _executionMode ;
15
15
private ExecutionProvider ? _executionProvider ;
16
+ private OnnxModelPrecision ? _precision ;
17
+ private int _requiredMemory ;
16
18
private bool _isOverrideEnabled ;
17
19
private bool _hasChanged ;
18
20
@@ -52,6 +54,18 @@ public ExecutionProvider? ExecutionProvider
52
54
set { _executionProvider = value ; NotifyPropertyChanged ( ) ; }
53
55
}
54
56
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
+
55
69
public bool IsOverrideEnabled
56
70
{
57
71
get { return _isOverrideEnabled ; }
Original file line number Diff line number Diff line change @@ -101,9 +101,9 @@ public static UpdateFeatureExtractorModelSetViewModel FromModelSet(FeatureExtrac
101
101
102
102
ControlNetType = controlNetType ,
103
103
ModelFile = modelset . FeatureExtractorConfig . OnnxModelPath ,
104
- Normalize = modelset . FeatureExtractorConfig . Normalize ,
104
+ Normalize = modelset . FeatureExtractorConfig . NormalizeOutput ,
105
105
SampleSize = modelset . FeatureExtractorConfig . SampleSize ,
106
- Channels = modelset . FeatureExtractorConfig . Channels ,
106
+ Channels = modelset . FeatureExtractorConfig . OutputChannels ,
107
107
} ;
108
108
}
109
109
@@ -120,8 +120,8 @@ public static FeatureExtractorModelSet ToModelSet(UpdateFeatureExtractorModelSet
120
120
IntraOpNumThreads = modelset . IntraOpNumThreads ,
121
121
FeatureExtractorConfig = new FeatureExtractorModelConfig
122
122
{
123
- Channels = modelset . Channels ,
124
- Normalize = modelset . Normalize ,
123
+ OutputChannels = modelset . Channels ,
124
+ NormalizeOutput = modelset . Normalize ,
125
125
SampleSize = modelset . SampleSize ,
126
126
OnnxModelPath = modelset . ModelFile
127
127
}
You can’t perform that action at this time.
0 commit comments