mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 13:06:31 +00:00
fix inference
fix small issues
This commit is contained in:
@@ -13,6 +13,6 @@ public class AIRecognitionConfig
|
||||
[Key(nameof(TrackingProbabilityIncrease))] public double TrackingProbabilityIncrease { get; set; }
|
||||
[Key(nameof(TrackingIntersectionThreshold))] public double TrackingIntersectionThreshold { get; set; }
|
||||
|
||||
[Key(nameof(Data))] public byte[] Data { get; set; }
|
||||
[Key(nameof(Paths))] public List<string> Paths { get; set; }
|
||||
[Key(nameof(Data))] public byte[] Data { get; set; } = null!;
|
||||
[Key(nameof(Paths))] public List<string> Paths { get; set; } = null!;
|
||||
}
|
||||
@@ -49,7 +49,7 @@ public class Annotation
|
||||
[MessagePackObject]
|
||||
public class AnnotationImage : Annotation
|
||||
{
|
||||
[Key("i")] public byte[] Image { get; set; }
|
||||
[Key("i")] public byte[] Image { get; set; } = null!;
|
||||
}
|
||||
|
||||
public enum AnnotationStatus
|
||||
|
||||
@@ -105,6 +105,7 @@ public class DbFactory : IDbFactory
|
||||
await db.Detections.DeleteAsync(x => names.Contains(x.AnnotationName), token: cancellationToken);
|
||||
await db.Annotations.DeleteAsync(x => names.Contains(x.Name), token: cancellationToken);
|
||||
});
|
||||
SaveToDisk();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ public static class ThrottleExt
|
||||
await func();
|
||||
_throttleRunAfter = false;
|
||||
}, cancellationToken);
|
||||
await Task.CompletedTask;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user