mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 18:36:32 +00:00
fix ai detection bugs #2
This commit is contained in:
@@ -144,8 +144,8 @@ public class GalleryManager : IGalleryManager
|
||||
var size = new Size(originalImage.Width, originalImage.Height);
|
||||
if (!File.Exists(labelName))
|
||||
{
|
||||
File.Move(imgPath, Path.Combine(_config.UnknownImages, imgName));
|
||||
_logger.LogInformation($"No labels found for image {imgName}! Moved image to the {_config.UnknownImages} folder.");
|
||||
File.Delete(imgPath);
|
||||
_logger.LogInformation($"No labels found for image {imgName}! Image deleted!");
|
||||
return null;
|
||||
}
|
||||
var labels = (await YoloLabel.ReadFromFile(labelName, cancellationToken))
|
||||
|
||||
Reference in New Issue
Block a user