已合并 PR 25: 合并最新图像库,打通加载图像和算子流程图拖拽功能

This commit is contained in:
@@ -70,7 +70,7 @@ public class SuperResolutionProcessor : ImageProcessorBase
|
||||
public override Image<Gray, byte> Process(Image<Gray, byte> inputImage)
|
||||
{
|
||||
string model = GetParameter<string>("Model");
|
||||
int scale = int.Parse(GetParameter<string>("Scale"));
|
||||
int scale = GetParameter<int>("Scale");
|
||||
|
||||
// 查找模型文件
|
||||
string modelPath = FindModelFile(model, scale);
|
||||
@@ -317,4 +317,4 @@ public class SuperResolutionProcessor : ImageProcessorBase
|
||||
_logger.Warning("Model file not found: {Model}_x{Scale}.onnx", model, scale);
|
||||
return string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user