Wes xx mediapipe integration
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5e225e9e02519f985b786b4135bdd064
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d7b2f368f8e7e27c0b2c507600a5aff4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,270 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/tflite/tflite_custom_op_resolver_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/tflite/tflite_custom_op_resolver_calculator.proto</summary>
|
||||
public static partial class TfliteCustomOpResolverCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/tflite/tflite_custom_op_resolver_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static TfliteCustomOpResolverCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkdtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdGZsaXRlL3RmbGl0ZV9jdXN0b21f",
|
||||
"b3BfcmVzb2x2ZXJfY2FsY3VsYXRvci5wcm90bxIJbWVkaWFwaXBlGiRtZWRp",
|
||||
"YXBpcGUvZnJhbWV3b3JrL2NhbGN1bGF0b3IucHJvdG8iowEKJ1RmTGl0ZUN1",
|
||||
"c3RvbU9wUmVzb2x2ZXJDYWxjdWxhdG9yT3B0aW9ucxIWCgd1c2VfZ3B1GAEg",
|
||||
"ASgIOgVmYWxzZTJgCgNleHQSHC5tZWRpYXBpcGUuQ2FsY3VsYXRvck9wdGlv",
|
||||
"bnMYgZqaeCABKAsyMi5tZWRpYXBpcGUuVGZMaXRlQ3VzdG9tT3BSZXNvbHZl",
|
||||
"ckNhbGN1bGF0b3JPcHRpb25z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.TfLiteCustomOpResolverCalculatorOptions), global::Mediapipe.TfLiteCustomOpResolverCalculatorOptions.Parser, new[]{ "UseGpu" }, null, null, new pb::Extension[] { global::Mediapipe.TfLiteCustomOpResolverCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
/// <summary>
|
||||
/// Options to generate an op resolver for running TfLite inference.
|
||||
/// </summary>
|
||||
public sealed partial class TfLiteCustomOpResolverCalculatorOptions : pb::IMessage<TfLiteCustomOpResolverCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<TfLiteCustomOpResolverCalculatorOptions> _parser = new pb::MessageParser<TfLiteCustomOpResolverCalculatorOptions>(() => new TfLiteCustomOpResolverCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<TfLiteCustomOpResolverCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.TfliteCustomOpResolverCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TfLiteCustomOpResolverCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TfLiteCustomOpResolverCalculatorOptions(TfLiteCustomOpResolverCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
useGpu_ = other.useGpu_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TfLiteCustomOpResolverCalculatorOptions Clone() {
|
||||
return new TfLiteCustomOpResolverCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "use_gpu" field.</summary>
|
||||
public const int UseGpuFieldNumber = 1;
|
||||
private readonly static bool UseGpuDefaultValue = false;
|
||||
|
||||
private bool useGpu_;
|
||||
/// <summary>
|
||||
/// Flag for using GPU inference which uses the correspondent op resolver.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool UseGpu {
|
||||
get { if ((_hasBits0 & 1) != 0) { return useGpu_; } else { return UseGpuDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
useGpu_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "use_gpu" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasUseGpu {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "use_gpu" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearUseGpu() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as TfLiteCustomOpResolverCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(TfLiteCustomOpResolverCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (UseGpu != other.UseGpu) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasUseGpu) hash ^= UseGpu.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasUseGpu) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(UseGpu);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasUseGpu) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(UseGpu);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasUseGpu) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(TfLiteCustomOpResolverCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasUseGpu) {
|
||||
UseGpu = other.UseGpu;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
UseGpu = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 8: {
|
||||
UseGpu = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the TfLiteCustomOpResolverCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.TfLiteCustomOpResolverCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.TfLiteCustomOpResolverCalculatorOptions>(252087553, pb::FieldCodec.ForMessage(2016700426, global::Mediapipe.TfLiteCustomOpResolverCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 144f1e034de2f8487be64ddc71703605
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6a2bf1f6f18cb129dbfa6dcff4455c4b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,438 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/tflite/tflite_tensors_to_classification_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/tflite/tflite_tensors_to_classification_calculator.proto</summary>
|
||||
public static partial class TfliteTensorsToClassificationCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/tflite/tflite_tensors_to_classification_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static TfliteTensorsToClassificationCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Ck5tZWRpYXBpcGUvY2FsY3VsYXRvcnMvdGZsaXRlL3RmbGl0ZV90ZW5zb3Jz",
|
||||
"X3RvX2NsYXNzaWZpY2F0aW9uX2NhbGN1bGF0b3IucHJvdG8SCW1lZGlhcGlw",
|
||||
"ZRokbWVkaWFwaXBlL2ZyYW1ld29yay9jYWxjdWxhdG9yLnByb3RvIvwBCi5U",
|
||||
"ZkxpdGVUZW5zb3JzVG9DbGFzc2lmaWNhdGlvbkNhbGN1bGF0b3JPcHRpb25z",
|
||||
"EhsKE21pbl9zY29yZV90aHJlc2hvbGQYASABKAISDQoFdG9wX2sYAiABKAUS",
|
||||
"FgoObGFiZWxfbWFwX3BhdGgYAyABKAkSHQoVYmluYXJ5X2NsYXNzaWZpY2F0",
|
||||
"aW9uGAQgASgIMmcKA2V4dBIcLm1lZGlhcGlwZS5DYWxjdWxhdG9yT3B0aW9u",
|
||||
"cxjn3YN/IAEoCzI5Lm1lZGlhcGlwZS5UZkxpdGVUZW5zb3JzVG9DbGFzc2lm",
|
||||
"aWNhdGlvbkNhbGN1bGF0b3JPcHRpb25z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.TfLiteTensorsToClassificationCalculatorOptions), global::Mediapipe.TfLiteTensorsToClassificationCalculatorOptions.Parser, new[]{ "MinScoreThreshold", "TopK", "LabelMapPath", "BinaryClassification" }, null, null, new pb::Extension[] { global::Mediapipe.TfLiteTensorsToClassificationCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class TfLiteTensorsToClassificationCalculatorOptions : pb::IMessage<TfLiteTensorsToClassificationCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<TfLiteTensorsToClassificationCalculatorOptions> _parser = new pb::MessageParser<TfLiteTensorsToClassificationCalculatorOptions>(() => new TfLiteTensorsToClassificationCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<TfLiteTensorsToClassificationCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.TfliteTensorsToClassificationCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TfLiteTensorsToClassificationCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TfLiteTensorsToClassificationCalculatorOptions(TfLiteTensorsToClassificationCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
minScoreThreshold_ = other.minScoreThreshold_;
|
||||
topK_ = other.topK_;
|
||||
labelMapPath_ = other.labelMapPath_;
|
||||
binaryClassification_ = other.binaryClassification_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TfLiteTensorsToClassificationCalculatorOptions Clone() {
|
||||
return new TfLiteTensorsToClassificationCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "min_score_threshold" field.</summary>
|
||||
public const int MinScoreThresholdFieldNumber = 1;
|
||||
private readonly static float MinScoreThresholdDefaultValue = 0F;
|
||||
|
||||
private float minScoreThreshold_;
|
||||
/// <summary>
|
||||
/// Score threshold for perserving the class.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float MinScoreThreshold {
|
||||
get { if ((_hasBits0 & 1) != 0) { return minScoreThreshold_; } else { return MinScoreThresholdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
minScoreThreshold_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "min_score_threshold" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasMinScoreThreshold {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "min_score_threshold" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearMinScoreThreshold() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "top_k" field.</summary>
|
||||
public const int TopKFieldNumber = 2;
|
||||
private readonly static int TopKDefaultValue = 0;
|
||||
|
||||
private int topK_;
|
||||
/// <summary>
|
||||
/// Number of highest scoring labels to output. If top_k is not positive then
|
||||
/// all labels are used.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int TopK {
|
||||
get { if ((_hasBits0 & 2) != 0) { return topK_; } else { return TopKDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
topK_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "top_k" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasTopK {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "top_k" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearTopK() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "label_map_path" field.</summary>
|
||||
public const int LabelMapPathFieldNumber = 3;
|
||||
private readonly static string LabelMapPathDefaultValue = "";
|
||||
|
||||
private string labelMapPath_;
|
||||
/// <summary>
|
||||
/// Path to a label map file for getting the actual name of class ids.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string LabelMapPath {
|
||||
get { return labelMapPath_ ?? LabelMapPathDefaultValue; }
|
||||
set {
|
||||
labelMapPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "label_map_path" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasLabelMapPath {
|
||||
get { return labelMapPath_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "label_map_path" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearLabelMapPath() {
|
||||
labelMapPath_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "binary_classification" field.</summary>
|
||||
public const int BinaryClassificationFieldNumber = 4;
|
||||
private readonly static bool BinaryClassificationDefaultValue = false;
|
||||
|
||||
private bool binaryClassification_;
|
||||
/// <summary>
|
||||
/// Whether the input is a single float for binary classification.
|
||||
/// When true, only a single float is expected in the input tensor and the
|
||||
/// label map, if provided, is expected to have exactly two labels.
|
||||
/// The single score(float) represent the probability of first label, and
|
||||
/// 1 - score is the probabilility of the second label.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool BinaryClassification {
|
||||
get { if ((_hasBits0 & 4) != 0) { return binaryClassification_; } else { return BinaryClassificationDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
binaryClassification_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "binary_classification" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasBinaryClassification {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "binary_classification" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearBinaryClassification() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as TfLiteTensorsToClassificationCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(TfLiteTensorsToClassificationCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MinScoreThreshold, other.MinScoreThreshold)) return false;
|
||||
if (TopK != other.TopK) return false;
|
||||
if (LabelMapPath != other.LabelMapPath) return false;
|
||||
if (BinaryClassification != other.BinaryClassification) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasMinScoreThreshold) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MinScoreThreshold);
|
||||
if (HasTopK) hash ^= TopK.GetHashCode();
|
||||
if (HasLabelMapPath) hash ^= LabelMapPath.GetHashCode();
|
||||
if (HasBinaryClassification) hash ^= BinaryClassification.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasMinScoreThreshold) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(MinScoreThreshold);
|
||||
}
|
||||
if (HasTopK) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(TopK);
|
||||
}
|
||||
if (HasLabelMapPath) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteString(LabelMapPath);
|
||||
}
|
||||
if (HasBinaryClassification) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteBool(BinaryClassification);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasMinScoreThreshold) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(MinScoreThreshold);
|
||||
}
|
||||
if (HasTopK) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(TopK);
|
||||
}
|
||||
if (HasLabelMapPath) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteString(LabelMapPath);
|
||||
}
|
||||
if (HasBinaryClassification) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteBool(BinaryClassification);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasMinScoreThreshold) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasTopK) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(TopK);
|
||||
}
|
||||
if (HasLabelMapPath) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(LabelMapPath);
|
||||
}
|
||||
if (HasBinaryClassification) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(TfLiteTensorsToClassificationCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasMinScoreThreshold) {
|
||||
MinScoreThreshold = other.MinScoreThreshold;
|
||||
}
|
||||
if (other.HasTopK) {
|
||||
TopK = other.TopK;
|
||||
}
|
||||
if (other.HasLabelMapPath) {
|
||||
LabelMapPath = other.LabelMapPath;
|
||||
}
|
||||
if (other.HasBinaryClassification) {
|
||||
BinaryClassification = other.BinaryClassification;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 13: {
|
||||
MinScoreThreshold = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
TopK = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
LabelMapPath = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
BinaryClassification = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 13: {
|
||||
MinScoreThreshold = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
TopK = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
LabelMapPath = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
BinaryClassification = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the TfLiteTensorsToClassificationCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.TfLiteTensorsToClassificationCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.TfLiteTensorsToClassificationCalculatorOptions>(266399463, pb::FieldCodec.ForMessage(2131195706, global::Mediapipe.TfLiteTensorsToClassificationCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3fa4dd627052aca64a2ce23226d87ddb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9f2c19171d3384a4e95e02f1507cd9e1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,682 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/tflite/tflite_tensors_to_landmarks_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/tflite/tflite_tensors_to_landmarks_calculator.proto</summary>
|
||||
public static partial class TfliteTensorsToLandmarksCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/tflite/tflite_tensors_to_landmarks_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static TfliteTensorsToLandmarksCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkltZWRpYXBpcGUvY2FsY3VsYXRvcnMvdGZsaXRlL3RmbGl0ZV90ZW5zb3Jz",
|
||||
"X3RvX2xhbmRtYXJrc19jYWxjdWxhdG9yLnByb3RvEgltZWRpYXBpcGUaJG1l",
|
||||
"ZGlhcGlwZS9mcmFtZXdvcmsvY2FsY3VsYXRvci5wcm90byKmBAopVGZMaXRl",
|
||||
"VGVuc29yc1RvTGFuZG1hcmtzQ2FsY3VsYXRvck9wdGlvbnMSFQoNbnVtX2xh",
|
||||
"bmRtYXJrcxgBIAEoBRIZChFpbnB1dF9pbWFnZV93aWR0aBgCIAEoBRIaChJp",
|
||||
"bnB1dF9pbWFnZV9oZWlnaHQYAyABKAUSHgoPZmxpcF92ZXJ0aWNhbGx5GAQg",
|
||||
"ASgIOgVmYWxzZRIgChFmbGlwX2hvcml6b250YWxseRgGIAEoCDoFZmFsc2US",
|
||||
"FgoLbm9ybWFsaXplX3oYBSABKAI6ATESZAoVdmlzaWJpbGl0eV9hY3RpdmF0",
|
||||
"aW9uGAcgASgOMj8ubWVkaWFwaXBlLlRmTGl0ZVRlbnNvcnNUb0xhbmRtYXJr",
|
||||
"c0NhbGN1bGF0b3JPcHRpb25zLkFjdGl2YXRpb246BE5PTkUSYgoTcHJlc2Vu",
|
||||
"Y2VfYWN0aXZhdGlvbhgIIAEoDjI/Lm1lZGlhcGlwZS5UZkxpdGVUZW5zb3Jz",
|
||||
"VG9MYW5kbWFya3NDYWxjdWxhdG9yT3B0aW9ucy5BY3RpdmF0aW9uOgROT05F",
|
||||
"IiMKCkFjdGl2YXRpb24SCAoETk9ORRAAEgsKB1NJR01PSUQQATJiCgNleHQS",
|
||||
"HC5tZWRpYXBpcGUuQ2FsY3VsYXRvck9wdGlvbnMYyuDeeiABKAsyNC5tZWRp",
|
||||
"YXBpcGUuVGZMaXRlVGVuc29yc1RvTGFuZG1hcmtzQ2FsY3VsYXRvck9wdGlv",
|
||||
"bnM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.TfLiteTensorsToLandmarksCalculatorOptions), global::Mediapipe.TfLiteTensorsToLandmarksCalculatorOptions.Parser, new[]{ "NumLandmarks", "InputImageWidth", "InputImageHeight", "FlipVertically", "FlipHorizontally", "NormalizeZ", "VisibilityActivation", "PresenceActivation" }, null, new[]{ typeof(global::Mediapipe.TfLiteTensorsToLandmarksCalculatorOptions.Types.Activation) }, new pb::Extension[] { global::Mediapipe.TfLiteTensorsToLandmarksCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class TfLiteTensorsToLandmarksCalculatorOptions : pb::IMessage<TfLiteTensorsToLandmarksCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<TfLiteTensorsToLandmarksCalculatorOptions> _parser = new pb::MessageParser<TfLiteTensorsToLandmarksCalculatorOptions>(() => new TfLiteTensorsToLandmarksCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<TfLiteTensorsToLandmarksCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.TfliteTensorsToLandmarksCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TfLiteTensorsToLandmarksCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TfLiteTensorsToLandmarksCalculatorOptions(TfLiteTensorsToLandmarksCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
numLandmarks_ = other.numLandmarks_;
|
||||
inputImageWidth_ = other.inputImageWidth_;
|
||||
inputImageHeight_ = other.inputImageHeight_;
|
||||
flipVertically_ = other.flipVertically_;
|
||||
flipHorizontally_ = other.flipHorizontally_;
|
||||
normalizeZ_ = other.normalizeZ_;
|
||||
visibilityActivation_ = other.visibilityActivation_;
|
||||
presenceActivation_ = other.presenceActivation_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TfLiteTensorsToLandmarksCalculatorOptions Clone() {
|
||||
return new TfLiteTensorsToLandmarksCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "num_landmarks" field.</summary>
|
||||
public const int NumLandmarksFieldNumber = 1;
|
||||
private readonly static int NumLandmarksDefaultValue = 0;
|
||||
|
||||
private int numLandmarks_;
|
||||
/// <summary>
|
||||
/// Number of landmarks from the output of the model.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int NumLandmarks {
|
||||
get { if ((_hasBits0 & 1) != 0) { return numLandmarks_; } else { return NumLandmarksDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
numLandmarks_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "num_landmarks" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNumLandmarks {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "num_landmarks" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNumLandmarks() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "input_image_width" field.</summary>
|
||||
public const int InputImageWidthFieldNumber = 2;
|
||||
private readonly static int InputImageWidthDefaultValue = 0;
|
||||
|
||||
private int inputImageWidth_;
|
||||
/// <summary>
|
||||
/// Size of the input image for the model. These options are used only when
|
||||
/// normalized landmarks are needed. Z coordinate is scaled as X assuming
|
||||
/// a weak perspective projection camera model.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int InputImageWidth {
|
||||
get { if ((_hasBits0 & 2) != 0) { return inputImageWidth_; } else { return InputImageWidthDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
inputImageWidth_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "input_image_width" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasInputImageWidth {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "input_image_width" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearInputImageWidth() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "input_image_height" field.</summary>
|
||||
public const int InputImageHeightFieldNumber = 3;
|
||||
private readonly static int InputImageHeightDefaultValue = 0;
|
||||
|
||||
private int inputImageHeight_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int InputImageHeight {
|
||||
get { if ((_hasBits0 & 4) != 0) { return inputImageHeight_; } else { return InputImageHeightDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
inputImageHeight_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "input_image_height" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasInputImageHeight {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "input_image_height" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearInputImageHeight() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "flip_vertically" field.</summary>
|
||||
public const int FlipVerticallyFieldNumber = 4;
|
||||
private readonly static bool FlipVerticallyDefaultValue = false;
|
||||
|
||||
private bool flipVertically_;
|
||||
/// <summary>
|
||||
/// Whether the detection coordinates from the input tensors should be flipped
|
||||
/// vertically (along the y-direction). This is useful, for example, when the
|
||||
/// input tensors represent detections defined with a coordinate system where
|
||||
/// the origin is at the top-left corner, whereas the desired detection
|
||||
/// representation has a bottom-left origin (e.g., in OpenGL).
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool FlipVertically {
|
||||
get { if ((_hasBits0 & 8) != 0) { return flipVertically_; } else { return FlipVerticallyDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
flipVertically_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "flip_vertically" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasFlipVertically {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "flip_vertically" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearFlipVertically() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "flip_horizontally" field.</summary>
|
||||
public const int FlipHorizontallyFieldNumber = 6;
|
||||
private readonly static bool FlipHorizontallyDefaultValue = false;
|
||||
|
||||
private bool flipHorizontally_;
|
||||
/// <summary>
|
||||
/// Whether the detection coordinates from the input tensors should be flipped
|
||||
/// horizontally (along the x-direction). This is useful, for example, when the
|
||||
/// input image is horizontally flipped in ImageTransformationCalculator
|
||||
/// beforehand.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool FlipHorizontally {
|
||||
get { if ((_hasBits0 & 32) != 0) { return flipHorizontally_; } else { return FlipHorizontallyDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 32;
|
||||
flipHorizontally_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "flip_horizontally" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasFlipHorizontally {
|
||||
get { return (_hasBits0 & 32) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "flip_horizontally" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearFlipHorizontally() {
|
||||
_hasBits0 &= ~32;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "normalize_z" field.</summary>
|
||||
public const int NormalizeZFieldNumber = 5;
|
||||
private readonly static float NormalizeZDefaultValue = 1F;
|
||||
|
||||
private float normalizeZ_;
|
||||
/// <summary>
|
||||
/// A value that Z coordinates should be divided by. This option is used only
|
||||
/// when normalized landmarks are needed. It is applied in addition to Z
|
||||
/// coordinate being re-scaled as X.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float NormalizeZ {
|
||||
get { if ((_hasBits0 & 16) != 0) { return normalizeZ_; } else { return NormalizeZDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 16;
|
||||
normalizeZ_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "normalize_z" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNormalizeZ {
|
||||
get { return (_hasBits0 & 16) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "normalize_z" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNormalizeZ() {
|
||||
_hasBits0 &= ~16;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "visibility_activation" field.</summary>
|
||||
public const int VisibilityActivationFieldNumber = 7;
|
||||
private readonly static global::Mediapipe.TfLiteTensorsToLandmarksCalculatorOptions.Types.Activation VisibilityActivationDefaultValue = global::Mediapipe.TfLiteTensorsToLandmarksCalculatorOptions.Types.Activation.None;
|
||||
|
||||
private global::Mediapipe.TfLiteTensorsToLandmarksCalculatorOptions.Types.Activation visibilityActivation_;
|
||||
/// <summary>
|
||||
/// Apply activation function to the tensor representing landmark visibility.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.TfLiteTensorsToLandmarksCalculatorOptions.Types.Activation VisibilityActivation {
|
||||
get { if ((_hasBits0 & 64) != 0) { return visibilityActivation_; } else { return VisibilityActivationDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 64;
|
||||
visibilityActivation_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "visibility_activation" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasVisibilityActivation {
|
||||
get { return (_hasBits0 & 64) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "visibility_activation" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearVisibilityActivation() {
|
||||
_hasBits0 &= ~64;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "presence_activation" field.</summary>
|
||||
public const int PresenceActivationFieldNumber = 8;
|
||||
private readonly static global::Mediapipe.TfLiteTensorsToLandmarksCalculatorOptions.Types.Activation PresenceActivationDefaultValue = global::Mediapipe.TfLiteTensorsToLandmarksCalculatorOptions.Types.Activation.None;
|
||||
|
||||
private global::Mediapipe.TfLiteTensorsToLandmarksCalculatorOptions.Types.Activation presenceActivation_;
|
||||
/// <summary>
|
||||
/// Apply activation function to the tensor representing landmark presence.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.TfLiteTensorsToLandmarksCalculatorOptions.Types.Activation PresenceActivation {
|
||||
get { if ((_hasBits0 & 128) != 0) { return presenceActivation_; } else { return PresenceActivationDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 128;
|
||||
presenceActivation_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "presence_activation" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasPresenceActivation {
|
||||
get { return (_hasBits0 & 128) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "presence_activation" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearPresenceActivation() {
|
||||
_hasBits0 &= ~128;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as TfLiteTensorsToLandmarksCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(TfLiteTensorsToLandmarksCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (NumLandmarks != other.NumLandmarks) return false;
|
||||
if (InputImageWidth != other.InputImageWidth) return false;
|
||||
if (InputImageHeight != other.InputImageHeight) return false;
|
||||
if (FlipVertically != other.FlipVertically) return false;
|
||||
if (FlipHorizontally != other.FlipHorizontally) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NormalizeZ, other.NormalizeZ)) return false;
|
||||
if (VisibilityActivation != other.VisibilityActivation) return false;
|
||||
if (PresenceActivation != other.PresenceActivation) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasNumLandmarks) hash ^= NumLandmarks.GetHashCode();
|
||||
if (HasInputImageWidth) hash ^= InputImageWidth.GetHashCode();
|
||||
if (HasInputImageHeight) hash ^= InputImageHeight.GetHashCode();
|
||||
if (HasFlipVertically) hash ^= FlipVertically.GetHashCode();
|
||||
if (HasFlipHorizontally) hash ^= FlipHorizontally.GetHashCode();
|
||||
if (HasNormalizeZ) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NormalizeZ);
|
||||
if (HasVisibilityActivation) hash ^= VisibilityActivation.GetHashCode();
|
||||
if (HasPresenceActivation) hash ^= PresenceActivation.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasNumLandmarks) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(NumLandmarks);
|
||||
}
|
||||
if (HasInputImageWidth) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(InputImageWidth);
|
||||
}
|
||||
if (HasInputImageHeight) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(InputImageHeight);
|
||||
}
|
||||
if (HasFlipVertically) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteBool(FlipVertically);
|
||||
}
|
||||
if (HasNormalizeZ) {
|
||||
output.WriteRawTag(45);
|
||||
output.WriteFloat(NormalizeZ);
|
||||
}
|
||||
if (HasFlipHorizontally) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteBool(FlipHorizontally);
|
||||
}
|
||||
if (HasVisibilityActivation) {
|
||||
output.WriteRawTag(56);
|
||||
output.WriteEnum((int) VisibilityActivation);
|
||||
}
|
||||
if (HasPresenceActivation) {
|
||||
output.WriteRawTag(64);
|
||||
output.WriteEnum((int) PresenceActivation);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasNumLandmarks) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(NumLandmarks);
|
||||
}
|
||||
if (HasInputImageWidth) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(InputImageWidth);
|
||||
}
|
||||
if (HasInputImageHeight) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(InputImageHeight);
|
||||
}
|
||||
if (HasFlipVertically) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteBool(FlipVertically);
|
||||
}
|
||||
if (HasNormalizeZ) {
|
||||
output.WriteRawTag(45);
|
||||
output.WriteFloat(NormalizeZ);
|
||||
}
|
||||
if (HasFlipHorizontally) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteBool(FlipHorizontally);
|
||||
}
|
||||
if (HasVisibilityActivation) {
|
||||
output.WriteRawTag(56);
|
||||
output.WriteEnum((int) VisibilityActivation);
|
||||
}
|
||||
if (HasPresenceActivation) {
|
||||
output.WriteRawTag(64);
|
||||
output.WriteEnum((int) PresenceActivation);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasNumLandmarks) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumLandmarks);
|
||||
}
|
||||
if (HasInputImageWidth) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(InputImageWidth);
|
||||
}
|
||||
if (HasInputImageHeight) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(InputImageHeight);
|
||||
}
|
||||
if (HasFlipVertically) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasFlipHorizontally) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasNormalizeZ) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasVisibilityActivation) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VisibilityActivation);
|
||||
}
|
||||
if (HasPresenceActivation) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PresenceActivation);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(TfLiteTensorsToLandmarksCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasNumLandmarks) {
|
||||
NumLandmarks = other.NumLandmarks;
|
||||
}
|
||||
if (other.HasInputImageWidth) {
|
||||
InputImageWidth = other.InputImageWidth;
|
||||
}
|
||||
if (other.HasInputImageHeight) {
|
||||
InputImageHeight = other.InputImageHeight;
|
||||
}
|
||||
if (other.HasFlipVertically) {
|
||||
FlipVertically = other.FlipVertically;
|
||||
}
|
||||
if (other.HasFlipHorizontally) {
|
||||
FlipHorizontally = other.FlipHorizontally;
|
||||
}
|
||||
if (other.HasNormalizeZ) {
|
||||
NormalizeZ = other.NormalizeZ;
|
||||
}
|
||||
if (other.HasVisibilityActivation) {
|
||||
VisibilityActivation = other.VisibilityActivation;
|
||||
}
|
||||
if (other.HasPresenceActivation) {
|
||||
PresenceActivation = other.PresenceActivation;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
NumLandmarks = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
InputImageWidth = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
InputImageHeight = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
FlipVertically = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 45: {
|
||||
NormalizeZ = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
FlipHorizontally = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 56: {
|
||||
VisibilityActivation = (global::Mediapipe.TfLiteTensorsToLandmarksCalculatorOptions.Types.Activation) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
PresenceActivation = (global::Mediapipe.TfLiteTensorsToLandmarksCalculatorOptions.Types.Activation) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 8: {
|
||||
NumLandmarks = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
InputImageWidth = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
InputImageHeight = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
FlipVertically = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 45: {
|
||||
NormalizeZ = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
FlipHorizontally = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 56: {
|
||||
VisibilityActivation = (global::Mediapipe.TfLiteTensorsToLandmarksCalculatorOptions.Types.Activation) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
PresenceActivation = (global::Mediapipe.TfLiteTensorsToLandmarksCalculatorOptions.Types.Activation) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Nested types
|
||||
/// <summary>Container for nested types declared in the TfLiteTensorsToLandmarksCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Types {
|
||||
public enum Activation {
|
||||
[pbr::OriginalName("NONE")] None = 0,
|
||||
[pbr::OriginalName("SIGMOID")] Sigmoid = 1,
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the TfLiteTensorsToLandmarksCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.TfLiteTensorsToLandmarksCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.TfLiteTensorsToLandmarksCalculatorOptions>(257405002, pb::FieldCodec.ForMessage(2059240018, global::Mediapipe.TfLiteTensorsToLandmarksCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 52844e1e379393aefb93922f09d6c720
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,546 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/tflite/tflite_tensors_to_segmentation_calculator.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Mediapipe {
|
||||
|
||||
/// <summary>Holder for reflection information generated from mediapipe/calculators/tflite/tflite_tensors_to_segmentation_calculator.proto</summary>
|
||||
public static partial class TfliteTensorsToSegmentationCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/tflite/tflite_tensors_to_segmentation_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static TfliteTensorsToSegmentationCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkxtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdGZsaXRlL3RmbGl0ZV90ZW5zb3Jz",
|
||||
"X3RvX3NlZ21lbnRhdGlvbl9jYWxjdWxhdG9yLnByb3RvEgltZWRpYXBpcGUa",
|
||||
"JG1lZGlhcGlwZS9mcmFtZXdvcmsvY2FsY3VsYXRvci5wcm90byK7AgosVGZM",
|
||||
"aXRlVGVuc29yc1RvU2VnbWVudGF0aW9uQ2FsY3VsYXRvck9wdGlvbnMSFAoM",
|
||||
"dGVuc29yX3dpZHRoGAEgASgFEhUKDXRlbnNvcl9oZWlnaHQYAiABKAUSFwoP",
|
||||
"dGVuc29yX2NoYW5uZWxzGAMgASgFEiYKG2NvbWJpbmVfd2l0aF9wcmV2aW91",
|
||||
"c19yYXRpbxgEIAEoAjoBMRIdChJvdXRwdXRfbGF5ZXJfaW5kZXgYBSABKAU6",
|
||||
"ATESFwoPZmxpcF92ZXJ0aWNhbGx5GAYgASgIMmUKA2V4dBIcLm1lZGlhcGlw",
|
||||
"ZS5DYWxjdWxhdG9yT3B0aW9ucxjK+7R4IAEoCzI3Lm1lZGlhcGlwZS5UZkxp",
|
||||
"dGVUZW5zb3JzVG9TZWdtZW50YXRpb25DYWxjdWxhdG9yT3B0aW9ucw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.TfLiteTensorsToSegmentationCalculatorOptions), global::Mediapipe.TfLiteTensorsToSegmentationCalculatorOptions.Parser, new[]{ "TensorWidth", "TensorHeight", "TensorChannels", "CombineWithPreviousRatio", "OutputLayerIndex", "FlipVertically" }, null, null, new pb::Extension[] { global::Mediapipe.TfLiteTensorsToSegmentationCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class TfLiteTensorsToSegmentationCalculatorOptions : pb::IMessage<TfLiteTensorsToSegmentationCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<TfLiteTensorsToSegmentationCalculatorOptions> _parser = new pb::MessageParser<TfLiteTensorsToSegmentationCalculatorOptions>(() => new TfLiteTensorsToSegmentationCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<TfLiteTensorsToSegmentationCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.TfliteTensorsToSegmentationCalculatorReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TfLiteTensorsToSegmentationCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TfLiteTensorsToSegmentationCalculatorOptions(TfLiteTensorsToSegmentationCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
tensorWidth_ = other.tensorWidth_;
|
||||
tensorHeight_ = other.tensorHeight_;
|
||||
tensorChannels_ = other.tensorChannels_;
|
||||
combineWithPreviousRatio_ = other.combineWithPreviousRatio_;
|
||||
outputLayerIndex_ = other.outputLayerIndex_;
|
||||
flipVertically_ = other.flipVertically_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TfLiteTensorsToSegmentationCalculatorOptions Clone() {
|
||||
return new TfLiteTensorsToSegmentationCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "tensor_width" field.</summary>
|
||||
public const int TensorWidthFieldNumber = 1;
|
||||
private readonly static int TensorWidthDefaultValue = 0;
|
||||
|
||||
private int tensorWidth_;
|
||||
/// <summary>
|
||||
/// Dimensions of input segmentation tensor to process.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int TensorWidth {
|
||||
get { if ((_hasBits0 & 1) != 0) { return tensorWidth_; } else { return TensorWidthDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
tensorWidth_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "tensor_width" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasTensorWidth {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "tensor_width" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearTensorWidth() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "tensor_height" field.</summary>
|
||||
public const int TensorHeightFieldNumber = 2;
|
||||
private readonly static int TensorHeightDefaultValue = 0;
|
||||
|
||||
private int tensorHeight_;
|
||||
/// <summary>
|
||||
/// required
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int TensorHeight {
|
||||
get { if ((_hasBits0 & 2) != 0) { return tensorHeight_; } else { return TensorHeightDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
tensorHeight_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "tensor_height" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasTensorHeight {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "tensor_height" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearTensorHeight() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "tensor_channels" field.</summary>
|
||||
public const int TensorChannelsFieldNumber = 3;
|
||||
private readonly static int TensorChannelsDefaultValue = 0;
|
||||
|
||||
private int tensorChannels_;
|
||||
/// <summary>
|
||||
/// required
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int TensorChannels {
|
||||
get { if ((_hasBits0 & 4) != 0) { return tensorChannels_; } else { return TensorChannelsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
tensorChannels_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "tensor_channels" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasTensorChannels {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "tensor_channels" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearTensorChannels() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "combine_with_previous_ratio" field.</summary>
|
||||
public const int CombineWithPreviousRatioFieldNumber = 4;
|
||||
private readonly static float CombineWithPreviousRatioDefaultValue = 1F;
|
||||
|
||||
private float combineWithPreviousRatio_;
|
||||
/// <summary>
|
||||
/// How much to use previous mask when computing current one; range [0-1].
|
||||
/// This is a tradeoff between responsiveness (0.0) and accuracy (1.0).
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float CombineWithPreviousRatio {
|
||||
get { if ((_hasBits0 & 8) != 0) { return combineWithPreviousRatio_; } else { return CombineWithPreviousRatioDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
combineWithPreviousRatio_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "combine_with_previous_ratio" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasCombineWithPreviousRatio {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "combine_with_previous_ratio" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearCombineWithPreviousRatio() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "output_layer_index" field.</summary>
|
||||
public const int OutputLayerIndexFieldNumber = 5;
|
||||
private readonly static int OutputLayerIndexDefaultValue = 1;
|
||||
|
||||
private int outputLayerIndex_;
|
||||
/// <summary>
|
||||
/// Model specific: Channel to use for processing tensor.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int OutputLayerIndex {
|
||||
get { if ((_hasBits0 & 16) != 0) { return outputLayerIndex_; } else { return OutputLayerIndexDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 16;
|
||||
outputLayerIndex_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "output_layer_index" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasOutputLayerIndex {
|
||||
get { return (_hasBits0 & 16) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "output_layer_index" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearOutputLayerIndex() {
|
||||
_hasBits0 &= ~16;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "flip_vertically" field.</summary>
|
||||
public const int FlipVerticallyFieldNumber = 6;
|
||||
private readonly static bool FlipVerticallyDefaultValue = false;
|
||||
|
||||
private bool flipVertically_;
|
||||
/// <summary>
|
||||
/// Flip result image mask along y-axis.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool FlipVertically {
|
||||
get { if ((_hasBits0 & 32) != 0) { return flipVertically_; } else { return FlipVerticallyDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 32;
|
||||
flipVertically_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "flip_vertically" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasFlipVertically {
|
||||
get { return (_hasBits0 & 32) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "flip_vertically" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearFlipVertically() {
|
||||
_hasBits0 &= ~32;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as TfLiteTensorsToSegmentationCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(TfLiteTensorsToSegmentationCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (TensorWidth != other.TensorWidth) return false;
|
||||
if (TensorHeight != other.TensorHeight) return false;
|
||||
if (TensorChannels != other.TensorChannels) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CombineWithPreviousRatio, other.CombineWithPreviousRatio)) return false;
|
||||
if (OutputLayerIndex != other.OutputLayerIndex) return false;
|
||||
if (FlipVertically != other.FlipVertically) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasTensorWidth) hash ^= TensorWidth.GetHashCode();
|
||||
if (HasTensorHeight) hash ^= TensorHeight.GetHashCode();
|
||||
if (HasTensorChannels) hash ^= TensorChannels.GetHashCode();
|
||||
if (HasCombineWithPreviousRatio) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CombineWithPreviousRatio);
|
||||
if (HasOutputLayerIndex) hash ^= OutputLayerIndex.GetHashCode();
|
||||
if (HasFlipVertically) hash ^= FlipVertically.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HasTensorWidth) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(TensorWidth);
|
||||
}
|
||||
if (HasTensorHeight) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(TensorHeight);
|
||||
}
|
||||
if (HasTensorChannels) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(TensorChannels);
|
||||
}
|
||||
if (HasCombineWithPreviousRatio) {
|
||||
output.WriteRawTag(37);
|
||||
output.WriteFloat(CombineWithPreviousRatio);
|
||||
}
|
||||
if (HasOutputLayerIndex) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteInt32(OutputLayerIndex);
|
||||
}
|
||||
if (HasFlipVertically) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteBool(FlipVertically);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasTensorWidth) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(TensorWidth);
|
||||
}
|
||||
if (HasTensorHeight) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(TensorHeight);
|
||||
}
|
||||
if (HasTensorChannels) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(TensorChannels);
|
||||
}
|
||||
if (HasCombineWithPreviousRatio) {
|
||||
output.WriteRawTag(37);
|
||||
output.WriteFloat(CombineWithPreviousRatio);
|
||||
}
|
||||
if (HasOutputLayerIndex) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteInt32(OutputLayerIndex);
|
||||
}
|
||||
if (HasFlipVertically) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteBool(FlipVertically);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasTensorWidth) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(TensorWidth);
|
||||
}
|
||||
if (HasTensorHeight) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(TensorHeight);
|
||||
}
|
||||
if (HasTensorChannels) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(TensorChannels);
|
||||
}
|
||||
if (HasCombineWithPreviousRatio) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasOutputLayerIndex) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(OutputLayerIndex);
|
||||
}
|
||||
if (HasFlipVertically) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(TfLiteTensorsToSegmentationCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasTensorWidth) {
|
||||
TensorWidth = other.TensorWidth;
|
||||
}
|
||||
if (other.HasTensorHeight) {
|
||||
TensorHeight = other.TensorHeight;
|
||||
}
|
||||
if (other.HasTensorChannels) {
|
||||
TensorChannels = other.TensorChannels;
|
||||
}
|
||||
if (other.HasCombineWithPreviousRatio) {
|
||||
CombineWithPreviousRatio = other.CombineWithPreviousRatio;
|
||||
}
|
||||
if (other.HasOutputLayerIndex) {
|
||||
OutputLayerIndex = other.OutputLayerIndex;
|
||||
}
|
||||
if (other.HasFlipVertically) {
|
||||
FlipVertically = other.FlipVertically;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
input.ReadRawMessage(this);
|
||||
#else
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
TensorWidth = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
TensorHeight = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
TensorChannels = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 37: {
|
||||
CombineWithPreviousRatio = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
OutputLayerIndex = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
FlipVertically = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 8: {
|
||||
TensorWidth = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
TensorHeight = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
TensorChannels = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 37: {
|
||||
CombineWithPreviousRatio = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
OutputLayerIndex = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
FlipVertically = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the TfLiteTensorsToSegmentationCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Extensions {
|
||||
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.TfLiteTensorsToSegmentationCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.TfLiteTensorsToSegmentationCalculatorOptions>(252526026, pb::FieldCodec.ForMessage(2020208210, global::Mediapipe.TfLiteTensorsToSegmentationCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a98aa11cb63ebc2ec8ed09953882168b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user