I've a function that receives 2 images: one from image picker and another from a slider , then it supposes to run a ML model and return an output image, but when I call the function, I get an error 'Unable to load asset'
Future ff(String styleImagePath, String originalImagePath) async {
ImageTransferFacade showtime = ImageTransferFacade();
var style_image = showtime.loadStyleImage(await '${styleImagePath}');
var original_image = showtime.loadoriginalImage(await '${originalImagePath}');
var output_image = showtime.transfer(await original_image, await style_image);
return output_image;
}
这两个文件都在您的pubspec.yaml<\/code>中吗?
"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.