path fix
This commit is contained in:
@@ -18,7 +18,7 @@ namespace CandyboxPlugin.Detectors
|
||||
// get this dll path
|
||||
var path = Assembly.GetCallingAssembly().Location;
|
||||
var dir = System.IO.Path.GetDirectoryName(path);
|
||||
var modelPath = Path.Combine(dir, "models\\" + MODEL_NAME);
|
||||
var modelPath = Path.Combine(dir, "models" , MODEL_NAME);
|
||||
_AIsession = new InferenceSession(modelPath, opts);
|
||||
_inputName = _AIsession.InputMetadata.First().Key;
|
||||
_dimensions = _AIsession.InputMetadata.First().Value.Dimensions;
|
||||
|
||||
Reference in New Issue
Block a user