TensorStack.Extractors
0.1.9
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package TensorStack.Extractors --version 0.1.9
NuGet\Install-Package TensorStack.Extractors -Version 0.1.9
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TensorStack.Extractors" Version="0.1.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TensorStack.Extractors" Version="0.1.9" />
<PackageReference Include="TensorStack.Extractors" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TensorStack.Extractors --version 0.1.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TensorStack.Extractors, 0.1.9"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TensorStack.Extractors@0.1.9
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TensorStack.Extractors&version=0.1.9
#tool nuget:?package=TensorStack.Extractors&version=0.1.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
TensorStack.Extractors
Canny
Hed
Depth
- https://huggingface.co/axodoxian/controlnet_onnx/resolve/main/annotators/depth.onnx
- https://huggingface.co/Xenova/depth-anything-large-hf/onnx/model.onnx
- https://huggingface.co/julienkay/sentis-MiDaS
Background Removal
Image Example
// Extractor config
var config = new ExtractorConfig("hed.onnx", Provider.DirectML);
// Create Pipeline
using (var pipeline = ExtractorPipeline.Create(config))
{
// Load Pipeline
await pipeline.LoadAsync();
// Read input image
var input = new ImageInput("Input.png");
// Options
var options = new ExtractorImageOptions(input);
// Run Extractor Pipeline
var outputTensor = await pipeline.RunAsync(options);
// Save Output image
await outputTensor.SaveAsync("Output.png");
}
Video Example
// Extractor config
var config = new ExtractorConfig("hed.onnx", Provider.DirectML);
// Create Pipeline
using (var pipeline = ExtractorPipeline.Create(config))
{
// Load Pipeline
await pipeline.LoadAsync();
// Read input video
var video = new VideoInput("Input.mp4");
// Get video input
var input = await video.GetTensorAsync();
// Options
var options = new ExtractorVideoOptions(input);
// Run Extractor Pipeline
var outputTensor = await pipeline.RunAsync(inputTensor);
// Save Output video
await outputTensor.SaveAync("Output.mp4");
}
Video Stream Example
// Extractor config
var config = new ExtractorConfig("hed.onnx", Provider.DirectML);
// Create Pipeline
using (var pipeline = ExtractorPipeline.Create(config))
{
// Load Pipeline
await pipeline.LoadAsync();
// Read input video
var video = new VideoInput("Input.mp4");
// Get video stream
var videoStream = video.GetStreamAsync();
// Options
var options = new ExtractorStreamOptions(videoStream);
// Get Extractor stream
videoStream = pipeline.RunAsync(options);
// Save Video Steam
await videoStream.SaveAync("Output.mp4");
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- TensorStack.Common (>= 0.1.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.