mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 09:06:30 +00:00
Separate installers to Full and Iterative
This commit is contained in:
@@ -146,8 +146,11 @@ public class YoloLabel : Label
|
||||
return null;
|
||||
|
||||
var strings = s.Replace(',', '.').Split(' ');
|
||||
if (strings.Length != 5)
|
||||
if (strings.Length < 5)
|
||||
throw new Exception("Wrong labels format!");
|
||||
if (strings.Length > 5)
|
||||
strings = strings[..5];
|
||||
|
||||
|
||||
var res = new YoloLabel
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user