@@ -65,16 +65,16 @@ public async Task<ImageTensor> RunAsync(ExtractorImageOptions options, IProgress
6565 {
6666 var timestamp = RunProgress . GetTimestamp ( ) ;
6767 if ( _extractorModel . Normalization == Normalization . ZeroToOne )
68- options . Input . NormalizeZeroToOne ( ) ;
68+ options . Image . NormalizeZeroToOne ( ) ;
6969
70- var resultTensor = await ExtractInternalAsync ( options . Input , options , cancellationToken ) ;
70+ var resultTensor = await ExtractInternalAsync ( options . Image , options , cancellationToken ) ;
7171 NormalizeResult ( resultTensor , options . IsInverted ) ;
7272
7373 if ( _extractorModel . Normalization == Normalization . ZeroToOne )
74- options . Input . NormalizeOneToOne ( ) ;
74+ options . Image . NormalizeOneToOne ( ) ;
7575
7676 if ( options . MergeInput )
77- resultTensor = MergeResult ( options . Input , resultTensor ) ;
77+ resultTensor = MergeResult ( options . Image , resultTensor ) ;
7878
7979 progressCallback ? . Report ( new RunProgress ( timestamp ) ) ;
8080 return resultTensor ;
@@ -93,10 +93,10 @@ public async Task<VideoTensor> RunAsync(ExtractorVideoOptions options, IProgress
9393 {
9494 var timestamp = RunProgress . GetTimestamp ( ) ;
9595 if ( _extractorModel . Normalization == Normalization . ZeroToOne )
96- options . Input . NormalizeZeroToOne ( ) ;
96+ options . Video . NormalizeZeroToOne ( ) ;
9797
9898 var results = new List < ImageTensor > ( ) ;
99- foreach ( var frame in options . Input . GetFrames ( ) )
99+ foreach ( var frame in options . Video . GetFrames ( ) )
100100 {
101101 var frameTime = Stopwatch . GetTimestamp ( ) ;
102102 var resultTensor = await ExtractInternalAsync ( frame , options , cancellationToken ) ;
@@ -107,10 +107,10 @@ public async Task<VideoTensor> RunAsync(ExtractorVideoOptions options, IProgress
107107 resultTensor = MergeResult ( frame , resultTensor ) ;
108108
109109 results . Add ( resultTensor ) ;
110- progressCallback ? . Report ( new RunProgress ( results . Count , options . Input . Frames , frameTime ) ) ;
110+ progressCallback ? . Report ( new RunProgress ( results . Count , options . Video . Frames , frameTime ) ) ;
111111 }
112112
113- var resultVideoTensor = new VideoTensor ( results . Join ( ) , options . Input . FrameRate ) ;
113+ var resultVideoTensor = new VideoTensor ( results . Join ( ) , options . Video . FrameRate ) ;
114114 progressCallback ? . Report ( new RunProgress ( timestamp ) ) ;
115115 return resultVideoTensor ;
116116 }
@@ -129,7 +129,7 @@ public async IAsyncEnumerable<VideoFrame> RunAsync(ExtractorStreamOptions option
129129 {
130130 var frameCount = 0 ;
131131 var timestamp = RunProgress . GetTimestamp ( ) ;
132- await foreach ( var videoFrame in options . Input )
132+ await foreach ( var videoFrame in options . Stream )
133133 {
134134 var frameTime = Stopwatch . GetTimestamp ( ) ;
135135 if ( _extractorModel . Normalization == Normalization . ZeroToOne )
0 commit comments