Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,14 @@ public sealed partial class AnomalyDetectionResponse
public required double AnomalyThreshold { get; set; }

/// <summary>
///
/// Calibration scale: the anomalous confidence is sigmoid((anomaly_score - anomaly_threshold) / anomaly_scale)
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("anomaly_scale")]
[global::System.Text.Json.Serialization.JsonRequired]
public required double AnomalyScale { get; set; }

/// <summary>
/// Whether the anomalous confidence reached the request confidence
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("is_anomalous")]
[global::System.Text.Json.Serialization.JsonRequired]
Expand Down Expand Up @@ -116,7 +123,12 @@ public sealed partial class AnomalyDetectionResponse
/// <param name="anomalyThreshold">
/// Decision threshold fitted on validation images
/// </param>
/// <param name="isAnomalous"></param>
/// <param name="anomalyScale">
/// Calibration scale: the anomalous confidence is sigmoid((anomaly_score - anomaly_threshold) / anomaly_scale)
/// </param>
/// <param name="isAnomalous">
/// Whether the anomalous confidence reached the request confidence
/// </param>
/// <param name="visualization">
/// Base64 encoded string containing prediction visualization image data
/// </param>
Expand Down Expand Up @@ -153,6 +165,7 @@ public AnomalyDetectionResponse(
global::System.Collections.Generic.IList<global::Roboflow.ClassificationPrediction> predictions,
double anomalyScore,
double anomalyThreshold,
double anomalyScale,
bool isAnomalous,
string? visualization,
string? inferenceId,
Expand All @@ -176,6 +189,7 @@ public AnomalyDetectionResponse(
this.ParentId = parentId;
this.AnomalyScore = anomalyScore;
this.AnomalyThreshold = anomalyThreshold;
this.AnomalyScale = anomalyScale;
this.IsAnomalous = isAnomalous;
this.AnomalyMap = anomalyMap;
}
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Roboflow/Generated/Roboflow.RoboflowClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ public sealed partial class RoboflowClient : global::Roboflow.IRoboflowClient, g
/// <inheritdoc/>
public global::Roboflow.AutoSDKClientOptions Options { get; }

internal global::System.Lazy<global::System.Text.Json.Serialization.JsonSerializerContext> JsonSerializerContextProvider { get; set; } = new(() => global::Roboflow.SourceGenerationContext.Default);
internal global::System.Lazy<global::System.Text.Json.Serialization.JsonSerializerContext>? JsonSerializerContextProvider { get; set; }

/// <summary>
///
/// </summary>
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext
{
get => JsonSerializerContextProvider.Value;
get => JsonSerializerContextProvider?.Value ?? global::Roboflow.SourceGenerationContext.Default;
set => JsonSerializerContextProvider = new(() => value);
}

Expand Down
2 changes: 1 addition & 1 deletion src/libs/Roboflow/openapi.json

Large diffs are not rendered by default.

Loading