Closed kyakuno closed 8 months ago
I got image file not found error in android device.
file not exists "/data/app/~~y9kWBPB8O9ypuxrt-SsS4Q==/com.DefaultCompany.ailiamodelsunity-caWrYcMIXExuwLSnn7J6-A==/base.apk/AXIP/AILIA-MODELS/Diffusion/SampleImage/super_resolution.jpg"
Below code not solve the image ptah on device.
void LoadImage(DiffusionModels diffusionModels) { switch (diffusionModels) { case DiffusionModels.Inpainting: AiliaImageSource.CreateSource("file://" + Application.dataPath + "/AXIP/AILIA-MODELS/Diffusion/SampleImage/inpainting.png"); AiliaImageSourceMask.CreateSource("file://" + Application.dataPath + "/AXIP/AILIA-MODELS/Diffusion/SampleImage/inpainting_mask.png"); AiliaImageSourceMaskResize.CreateSource("file://" + Application.dataPath + "/AXIP/AILIA-MODELS/Diffusion/SampleImage/inpainting_mask.png"); break; case DiffusionModels.SuperResolution: AiliaImageSource.CreateSource("file://" + Application.dataPath + "/AXIP/AILIA-MODELS/Diffusion/SampleImage/super_resolution.jpg"); break; case DiffusionModels.StableDiffusion: break; } }
パスではなくTexture2Dで与えるようにしたほうがよさそう。
I got image file not found error in android device.
Below code not solve the image ptah on device.