mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
Fix cv:resize bug
This commit is contained in:
@@ -49,7 +49,8 @@ void StableDiffusionInpaintPipeline::PrepareMaskAndMaskedImage(
|
||||
float_mask[i] = 1;
|
||||
}
|
||||
}
|
||||
image_mask.SetExternalData({1, 1, shape[1] * 8, shape[0] * 8},
|
||||
// NCHW format
|
||||
image_mask.SetExternalData({1, 1, shape[0] * 8, shape[1] * 8},
|
||||
FDDataType::FP32, float_mask.data());
|
||||
|
||||
// Set mask_image
|
||||
|
||||
Reference in New Issue
Block a user