fix inference

fix small issues
This commit is contained in:
Alex Bezdieniezhnykh
2025-02-14 09:00:04 +02:00
parent cfd5483a18
commit 961d2499de
15 changed files with 42 additions and 29 deletions
@@ -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!;
}
+1 -1
View File
@@ -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
+1
View File
@@ -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;
}
}