mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 08:36:29 +00:00
cleanup
This commit is contained in:
@@ -216,7 +216,7 @@ public class AnnotationService : IAnnotationService
|
|||||||
image = Image.FromStream(stream);
|
image = Image.FromStream(stream);
|
||||||
if (File.Exists(annotation.ImagePath))
|
if (File.Exists(annotation.ImagePath))
|
||||||
ResilienceExt.WithRetry(() => File.Delete(annotation.ImagePath));
|
ResilienceExt.WithRetry(() => File.Delete(annotation.ImagePath));
|
||||||
image.Save(annotation.ImagePath, ImageFormat.Jpeg); //todo: check png images coming from queue
|
image.Save(annotation.ImagePath, ImageFormat.Jpeg);
|
||||||
}
|
}
|
||||||
|
|
||||||
await YoloLabel.WriteToFile(detections, annotation.LabelPath, token);
|
await YoloLabel.WriteToFile(detections, annotation.LabelPath, token);
|
||||||
|
|||||||
Reference in New Issue
Block a user