mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Fixed of using backslash (\) in paths to cfg for training
This commit is contained in:
@ -126,6 +126,7 @@ char *basecfg(char *cfgfile)
|
||||
{
|
||||
c = next+1;
|
||||
}
|
||||
if(!next) while ((next = strchr(c, '\\'))) { c = next + 1; }
|
||||
c = copy_string(c);
|
||||
next = strchr(c, '.');
|
||||
if (next) *next = 0;
|
||||
|
Reference in New Issue
Block a user