| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f7ef39c commit fa41aac
34 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,6 +21,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TensorFlowDatasets", "src\T | |||
| 21 | 21 | EndProject | |
| 22 | 22 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TensorFlowNET.Examples.GPU", "test\TensorFlowNET.Examples\TensorFlowNET.Examples.GPU.csproj", "{6F6B3382-8F87-4CD9-BF87-C81D5405685A}" | |
| 23 | 23 | EndProject | |
| 24 | + Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TensorFlowNET.Models", "src\TensorFlowNET.Models\TensorFlowNET.Models.csproj", "{D03F94CF-B283-4730-B177-21A57641061F}" | ||
| 25 | + EndProject | ||
| 24 | 26 | Global | |
| 25 | 27 | GlobalSection(SolutionConfigurationPlatforms) = preSolution | |
| 26 | 28 | Debug|Any CPU = Debug|Any CPU | |
@@ -63,6 +65,10 @@ Global | |||
| 63 | 65 | {6F6B3382-8F87-4CD9-BF87-C81D5405685A}.Debug|Any CPU.Build.0 = Debug|Any CPU | |
| 64 | 66 | {6F6B3382-8F87-4CD9-BF87-C81D5405685A}.Release|Any CPU.ActiveCfg = Release|Any CPU | |
| 65 | 67 | {6F6B3382-8F87-4CD9-BF87-C81D5405685A}.Release|Any CPU.Build.0 = Release|Any CPU | |
| 68 | + {D03F94CF-B283-4730-B177-21A57641061F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
| 69 | + {D03F94CF-B283-4730-B177-21A57641061F}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
| 70 | + {D03F94CF-B283-4730-B177-21A57641061F}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
| 71 | + {D03F94CF-B283-4730-B177-21A57641061F}.Release|Any CPU.Build.0 = Release|Any CPU | ||
| 66 | 72 | EndGlobalSection | |
| 67 | 73 | GlobalSection(SolutionProperties) = preSolution | |
| 68 | 74 | HideSolutionNode = FALSE | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,343 @@ | |||
| 1 | + // <auto-generated> | ||
| 2 | + // Generated by the protocol buffer compiler. DO NOT EDIT! | ||
| 3 | + // source: object_detection/protos/argmax_matcher.proto | ||
| 4 | + // </auto-generated> | ||
| 5 | + #pragma warning disable 1591, 0612, 3021 | ||
| 6 | + #region Designer generated code | ||
| 7 | + | ||
| 8 | + using pb = global::Google.Protobuf; | ||
| 9 | + using pbc = global::Google.Protobuf.Collections; | ||
| 10 | + using pbr = global::Google.Protobuf.Reflection; | ||
| 11 | + using scg = global::System.Collections.Generic; | ||
| 12 | + namespace Tensorflow.Models.ObjectDetection.Protos { | ||
| 13 | + | ||
| 14 | + /// <summary>Holder for reflection information generated from object_detection/protos/argmax_matcher.proto</summary> | ||
| 15 | + public static partial class ArgmaxMatcherReflection { | ||
| 16 | + | ||
| 17 | + #region Descriptor | ||
| 18 | + /// <summary>File descriptor for object_detection/protos/argmax_matcher.proto</summary> | ||
| 19 | + public static pbr::FileDescriptor Descriptor { | ||
| 20 | + get { return descriptor; } | ||
| 21 | + } | ||
| 22 | + private static pbr::FileDescriptor descriptor; | ||
| 23 | + | ||
| 24 | + static ArgmaxMatcherReflection() { | ||
| 25 | + byte[] descriptorData = global::System.Convert.FromBase64String( | ||
| 26 | + string.Concat( | ||
| 27 | + "CixvYmplY3RfZGV0ZWN0aW9uL3Byb3Rvcy9hcmdtYXhfbWF0Y2hlci5wcm90", | ||
| 28 | + "bxIXb2JqZWN0X2RldGVjdGlvbi5wcm90b3MixwEKDUFyZ01heE1hdGNoZXIS", | ||
| 29 | + "GQoRbWF0Y2hlZF90aHJlc2hvbGQYASABKAISGwoTdW5tYXRjaGVkX3RocmVz", | ||
| 30 | + "aG9sZBgCIAEoAhIZChFpZ25vcmVfdGhyZXNob2xkcxgDIAEoCBImCh5uZWdh", | ||
| 31 | + "dGl2ZXNfbG93ZXJfdGhhbl91bm1hdGNoZWQYBCABKAgSIAoYZm9yY2VfbWF0", | ||
| 32 | + "Y2hfZm9yX2VhY2hfcm93GAUgASgIEhkKEXVzZV9tYXRtdWxfZ2F0aGVyGAYg", | ||
| 33 | + "ASgIYgZwcm90bzM=")); | ||
| 34 | + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, | ||
| 35 | + new pbr::FileDescriptor[] { }, | ||
| 36 | + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { | ||
| 37 | + new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.Models.ObjectDetection.Protos.ArgMaxMatcher), global::Tensorflow.Models.ObjectDetection.Protos.ArgMaxMatcher.Parser, new[]{ "MatchedThreshold", "UnmatchedThreshold", "IgnoreThresholds", "NegativesLowerThanUnmatched", "ForceMatchForEachRow", "UseMatmulGather" }, null, null, null) | ||
| 38 | + })); | ||
| 39 | + } | ||
| 40 | + #endregion | ||
| 41 | + | ||
| 42 | + } | ||
| 43 | + #region Messages | ||
| 44 | + /// <summary> | ||
| 45 | + /// Configuration proto for ArgMaxMatcher. See | ||
| 46 | + /// matchers/argmax_matcher.py for details. | ||
| 47 | + /// </summary> | ||
| 48 | + public sealed partial class ArgMaxMatcher : pb::IMessage<ArgMaxMatcher> { | ||
| 49 | + private static readonly pb::MessageParser<ArgMaxMatcher> _parser = new pb::MessageParser<ArgMaxMatcher>(() => new ArgMaxMatcher()); | ||
| 50 | + private pb::UnknownFieldSet _unknownFields; | ||
| 51 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 52 | + public static pb::MessageParser<ArgMaxMatcher> Parser { get { return _parser; } } | ||
| 53 | + | ||
| 54 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 55 | + public static pbr::MessageDescriptor Descriptor { | ||
| 56 | + get { return global::Tensorflow.Models.ObjectDetection.Protos.ArgmaxMatcherReflection.Descriptor.MessageTypes[0]; } | ||
| 57 | + } | ||
| 58 | + | ||
| 59 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 60 | + pbr::MessageDescriptor pb::IMessage.Descriptor { | ||
| 61 | + get { return Descriptor; } | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 65 | + public ArgMaxMatcher() { | ||
| 66 | + OnConstruction(); | ||
| 67 | + } | ||
| 68 | + | ||
| 69 | + partial void OnConstruction(); | ||
| 70 | + | ||
| 71 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 72 | + public ArgMaxMatcher(ArgMaxMatcher other) : this() { | ||
| 73 | + matchedThreshold_ = other.matchedThreshold_; | ||
| 74 | + unmatchedThreshold_ = other.unmatchedThreshold_; | ||
| 75 | + ignoreThresholds_ = other.ignoreThresholds_; | ||
| 76 | + negativesLowerThanUnmatched_ = other.negativesLowerThanUnmatched_; | ||
| 77 | + forceMatchForEachRow_ = other.forceMatchForEachRow_; | ||
| 78 | + useMatmulGather_ = other.useMatmulGather_; | ||
| 79 | + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); | ||
| 80 | + } | ||
| 81 | + | ||
| 82 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 83 | + public ArgMaxMatcher Clone() { | ||
| 84 | + return new ArgMaxMatcher(this); | ||
| 85 | + } | ||
| 86 | + | ||
| 87 | + /// <summary>Field number for the "matched_threshold" field.</summary> | ||
| 88 | + public const int MatchedThresholdFieldNumber = 1; | ||
| 89 | + private float matchedThreshold_; | ||
| 90 | + /// <summary> | ||
| 91 | + /// Threshold for positive matches. | ||
| 92 | + /// </summary> | ||
| 93 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 94 | + public float MatchedThreshold { | ||
| 95 | + get { return matchedThreshold_; } | ||
| 96 | + set { | ||
| 97 | + matchedThreshold_ = value; | ||
| 98 | + } | ||
| 99 | + } | ||
| 100 | + | ||
| 101 | + /// <summary>Field number for the "unmatched_threshold" field.</summary> | ||
| 102 | + public const int UnmatchedThresholdFieldNumber = 2; | ||
| 103 | + private float unmatchedThreshold_; | ||
| 104 | + /// <summary> | ||
| 105 | + /// Threshold for negative matches. | ||
| 106 | + /// </summary> | ||
| 107 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 108 | + public float UnmatchedThreshold { | ||
| 109 | + get { return unmatchedThreshold_; } | ||
| 110 | + set { | ||
| 111 | + unmatchedThreshold_ = value; | ||
| 112 | + } | ||
| 113 | + } | ||
| 114 | + | ||
| 115 | + /// <summary>Field number for the "ignore_thresholds" field.</summary> | ||
| 116 | + public const int IgnoreThresholdsFieldNumber = 3; | ||
| 117 | + private bool ignoreThresholds_; | ||
| 118 | + /// <summary> | ||
| 119 | + /// Whether to construct ArgMaxMatcher without thresholds. | ||
| 120 | + /// </summary> | ||
| 121 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 122 | + public bool IgnoreThresholds { | ||
| 123 | + get { return ignoreThresholds_; } | ||
| 124 | + set { | ||
| 125 | + ignoreThresholds_ = value; | ||
| 126 | + } | ||
| 127 | + } | ||
| 128 | + | ||
| 129 | + /// <summary>Field number for the "negatives_lower_than_unmatched" field.</summary> | ||
| 130 | + public const int NegativesLowerThanUnmatchedFieldNumber = 4; | ||
| 131 | + private bool negativesLowerThanUnmatched_; | ||
| 132 | + /// <summary> | ||
| 133 | + /// If True then negative matches are the ones below the unmatched_threshold, | ||
| 134 | + /// whereas ignored matches are in between the matched and umatched | ||
| 135 | + /// threshold. If False, then negative matches are in between the matched | ||
| 136 | + /// and unmatched threshold, and everything lower than unmatched is ignored. | ||
| 137 | + /// </summary> | ||
| 138 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 139 | + public bool NegativesLowerThanUnmatched { | ||
| 140 | + get { return negativesLowerThanUnmatched_; } | ||
| 141 | + set { | ||
| 142 | + negativesLowerThanUnmatched_ = value; | ||
| 143 | + } | ||
| 144 | + } | ||
| 145 | + | ||
| 146 | + /// <summary>Field number for the "force_match_for_each_row" field.</summary> | ||
| 147 | + public const int ForceMatchForEachRowFieldNumber = 5; | ||
| 148 | + private bool forceMatchForEachRow_; | ||
| 149 | + /// <summary> | ||
| 150 | + /// Whether to ensure each row is matched to at least one column. | ||
| 151 | + /// </summary> | ||
| 152 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 153 | + public bool ForceMatchForEachRow { | ||
| 154 | + get { return forceMatchForEachRow_; } | ||
| 155 | + set { | ||
| 156 | + forceMatchForEachRow_ = value; | ||
| 157 | + } | ||
| 158 | + } | ||
| 159 | + | ||
| 160 | + /// <summary>Field number for the "use_matmul_gather" field.</summary> | ||
| 161 | + public const int UseMatmulGatherFieldNumber = 6; | ||
| 162 | + private bool useMatmulGather_; | ||
| 163 | + /// <summary> | ||
| 164 | + /// Force constructed match objects to use matrix multiplication based gather | ||
| 165 | + /// instead of standard tf.gather | ||
| 166 | + /// </summary> | ||
| 167 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 168 | + public bool UseMatmulGather { | ||
| 169 | + get { return useMatmulGather_; } | ||
| 170 | + set { | ||
| 171 | + useMatmulGather_ = value; | ||
| 172 | + } | ||
| 173 | + } | ||
| 174 | + | ||
| 175 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 176 | + public override bool Equals(object other) { | ||
| 177 | + return Equals(other as ArgMaxMatcher); | ||
| 178 | + } | ||
| 179 | + | ||
| 180 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 181 | + public bool Equals(ArgMaxMatcher other) { | ||
| 182 | + if (ReferenceEquals(other, null)) { | ||
| 183 | + return false; | ||
| 184 | + } | ||
| 185 | + if (ReferenceEquals(other, this)) { | ||
| 186 | + return true; | ||
| 187 | + } | ||
| 188 | + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MatchedThreshold, other.MatchedThreshold)) return false; | ||
| 189 | + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(UnmatchedThreshold, other.UnmatchedThreshold)) return false; | ||
| 190 | + if (IgnoreThresholds != other.IgnoreThresholds) return false; | ||
| 191 | + if (NegativesLowerThanUnmatched != other.NegativesLowerThanUnmatched) return false; | ||
| 192 | + if (ForceMatchForEachRow != other.ForceMatchForEachRow) return false; | ||
| 193 | + if (UseMatmulGather != other.UseMatmulGather) return false; | ||
| 194 | + return Equals(_unknownFields, other._unknownFields); | ||
| 195 | + } | ||
| 196 | + | ||
| 197 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 198 | + public override int GetHashCode() { | ||
| 199 | + int hash = 1; | ||
| 200 | + if (MatchedThreshold != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MatchedThreshold); | ||
| 201 | + if (UnmatchedThreshold != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(UnmatchedThreshold); | ||
| 202 | + if (IgnoreThresholds != false) hash ^= IgnoreThresholds.GetHashCode(); | ||
| 203 | + if (NegativesLowerThanUnmatched != false) hash ^= NegativesLowerThanUnmatched.GetHashCode(); | ||
| 204 | + if (ForceMatchForEachRow != false) hash ^= ForceMatchForEachRow.GetHashCode(); | ||
| 205 | + if (UseMatmulGather != false) hash ^= UseMatmulGather.GetHashCode(); | ||
| 206 | + if (_unknownFields != null) { | ||
| 207 | + hash ^= _unknownFields.GetHashCode(); | ||
| 208 | + } | ||
| 209 | + return hash; | ||
| 210 | + } | ||
| 211 | + | ||
| 212 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 213 | + public override string ToString() { | ||
| 214 | + return pb::JsonFormatter.ToDiagnosticString(this); | ||
| 215 | + } | ||
| 216 | + | ||
| 217 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 218 | + public void WriteTo(pb::CodedOutputStream output) { | ||
| 219 | + if (MatchedThreshold != 0F) { | ||
| 220 | + output.WriteRawTag(13); | ||
| 221 | + output.WriteFloat(MatchedThreshold); | ||
| 222 | + } | ||
| 223 | + if (UnmatchedThreshold != 0F) { | ||
| 224 | + output.WriteRawTag(21); | ||
| 225 | + output.WriteFloat(UnmatchedThreshold); | ||
| 226 | + } | ||
| 227 | + if (IgnoreThresholds != false) { | ||
| 228 | + output.WriteRawTag(24); | ||
| 229 | + output.WriteBool(IgnoreThresholds); | ||
| 230 | + } | ||
| 231 | + if (NegativesLowerThanUnmatched != false) { | ||
| 232 | + output.WriteRawTag(32); | ||
| 233 | + output.WriteBool(NegativesLowerThanUnmatched); | ||
| 234 | + } | ||
| 235 | + if (ForceMatchForEachRow != false) { | ||
| 236 | + output.WriteRawTag(40); | ||
| 237 | + output.WriteBool(ForceMatchForEachRow); | ||
| 238 | + } | ||
| 239 | + if (UseMatmulGather != false) { | ||
| 240 | + output.WriteRawTag(48); | ||
| 241 | + output.WriteBool(UseMatmulGather); | ||
| 242 | + } | ||
| 243 | + if (_unknownFields != null) { | ||
| 244 | + _unknownFields.WriteTo(output); | ||
| 245 | + } | ||
| 246 | + } | ||
| 247 | + | ||
| 248 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 249 | + public int CalculateSize() { | ||
| 250 | + int size = 0; | ||
| 251 | + if (MatchedThreshold != 0F) { | ||
| 252 | + size += 1 + 4; | ||
| 253 | + } | ||
| 254 | + if (UnmatchedThreshold != 0F) { | ||
| 255 | + size += 1 + 4; | ||
| 256 | + } | ||
| 257 | + if (IgnoreThresholds != false) { | ||
| 258 | + size += 1 + 1; | ||
| 259 | + } | ||
| 260 | + if (NegativesLowerThanUnmatched != false) { | ||
| 261 | + size += 1 + 1; | ||
| 262 | + } | ||
| 263 | + if (ForceMatchForEachRow != false) { | ||
| 264 | + size += 1 + 1; | ||
| 265 | + } | ||
| 266 | + if (UseMatmulGather != false) { | ||
| 267 | + size += 1 + 1; | ||
| 268 | + } | ||
| 269 | + if (_unknownFields != null) { | ||
| 270 | + size += _unknownFields.CalculateSize(); | ||
| 271 | + } | ||
| 272 | + return size; | ||
| 273 | + } | ||
| 274 | + | ||
| 275 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 276 | + public void MergeFrom(ArgMaxMatcher other) { | ||
| 277 | + if (other == null) { | ||
| 278 | + return; | ||
| 279 | + } | ||
| 280 | + if (other.MatchedThreshold != 0F) { | ||
| 281 | + MatchedThreshold = other.MatchedThreshold; | ||
| 282 | + } | ||
| 283 | + if (other.UnmatchedThreshold != 0F) { | ||
| 284 | + UnmatchedThreshold = other.UnmatchedThreshold; | ||
| 285 | + } | ||
| 286 | + if (other.IgnoreThresholds != false) { | ||
| 287 | + IgnoreThresholds = other.IgnoreThresholds; | ||
| 288 | + } | ||
| 289 | + if (other.NegativesLowerThanUnmatched != false) { | ||
| 290 | + NegativesLowerThanUnmatched = other.NegativesLowerThanUnmatched; | ||
| 291 | + } | ||
| 292 | + if (other.ForceMatchForEachRow != false) { | ||
| 293 | + ForceMatchForEachRow = other.ForceMatchForEachRow; | ||
| 294 | + } | ||
| 295 | + if (other.UseMatmulGather != false) { | ||
| 296 | + UseMatmulGather = other.UseMatmulGather; | ||
| 297 | + } | ||
| 298 | + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); | ||
| 299 | + } | ||
| 300 | + | ||
| 301 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | ||
| 302 | + public void MergeFrom(pb::CodedInputStream input) { | ||
| 303 | + uint tag; | ||
| 304 | + while ((tag = input.ReadTag()) != 0) { | ||
| 305 | + switch(tag) { | ||
| 306 | + default: | ||
| 307 | + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); | ||
| 308 | + break; | ||
| 309 | + case 13: { | ||
| 310 | + MatchedThreshold = input.ReadFloat(); | ||
| 311 | + break; | ||
| 312 | + } | ||
| 313 | + case 21: { | ||
| 314 | + UnmatchedThreshold = input.ReadFloat(); | ||
| 315 | + break; | ||
| 316 | + } | ||
| 317 | + case 24: { | ||
| 318 | + IgnoreThresholds = input.ReadBool(); | ||
| 319 | + break; | ||
| 320 | + } | ||
| 321 | + case 32: { | ||
| 322 | + NegativesLowerThanUnmatched = input.ReadBool(); | ||
| 323 | + break; | ||
| 324 | + } | ||
| 325 | + case 40: { | ||
| 326 | + ForceMatchForEachRow = input.ReadBool(); | ||
| 327 | + break; | ||
| 328 | + } | ||
| 329 | + case 48: { | ||
| 330 | + UseMatmulGather = input.ReadBool(); | ||
| 331 | + break; | ||
| 332 | + } | ||
| 333 | + } | ||
| 334 | + } | ||
| 335 | + } | ||
| 336 | + | ||
| 337 | + } | ||
| 338 | + | ||
| 339 | + #endregion | ||
| 340 | + | ||
| 341 | + } | ||
| 342 | + | ||
| 343 | + #endregion Designer generated code | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments