generated from vignetteapp/dotnet-template
-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
Calculator
more thread-safe (#25)
* YEP implement @LeNitrous 's suggestion * lock * Fix stream handle nullable issue * Holistic calculators Co-authored-by: Speykious <[email protected]>
- Loading branch information
Showing
5 changed files
with
46 additions
and
9 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) homuler and The Vignette Authors | ||
// This file is part of MediaPipe.NET. | ||
// MediaPipe.NET is licensed under the MIT License. See LICENSE for details. | ||
|
||
using Mediapipe.Net.Framework.Packet; | ||
|
||
namespace Mediapipe.Net.Calculators | ||
{ | ||
public sealed class HolisticCpuCalculator : CpuCalculator<BoolPacket, bool> | ||
{ | ||
public HolisticCpuCalculator() : base( | ||
graphPath: "mediapipe/graphs/holistic_tracking/holistic_tracking_cpu.pbtxt") | ||
{ | ||
} | ||
} | ||
} |
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,16 @@ | ||
// Copyright (c) homuler and The Vignette Authors | ||
// This file is part of MediaPipe.NET. | ||
// MediaPipe.NET is licensed under the MIT License. See LICENSE for details. | ||
|
||
using Mediapipe.Net.Framework.Packet; | ||
|
||
namespace Mediapipe.Net.Calculators | ||
{ | ||
public sealed class HolisticGpuCalculator : CpuCalculator<BoolPacket, bool> | ||
{ | ||
public HolisticGpuCalculator() : base( | ||
graphPath: "mediapipe/graphs/holistic_tracking/holistic_tracking_gpu.pbtxt") | ||
{ | ||
} | ||
} | ||
} |