john-rocky / CoreML-Models

Converted CoreML Model Zoo.
1.23k stars 111 forks source link

UGATIT Core ML model always produce black image in preview #10

Closed ozgurshn closed 2 years ago

ozgurshn commented 2 years ago

Thanks for this great repo and all the work you have done! I tested this model with several images in preview of Xcode 13.2.1. It always produce black image. https://drive.google.com/file/d/1o15OO0Kn0tq79fFkmBm3PES93IRQOxB-/view?usp=sharing

john-rocky commented 2 years ago

Hi, UGATIT coreML model unstable sometimes.I don't know why. I share 1GB original model( The model in repo has been quantized.). https://drive.google.com/file/d/1VIDL8y0HpdoArkV0eDURf6CD0R4eiIk0/view?usp=sharing Try this.

ozgurshn commented 2 years ago

Thank you!

ioskevinshah commented 2 years ago

Does this 1GB model work for you?. For me, it's keep showing me indicator.(Apple M1 iMac). was testing directly using Xcode.

image
ioskevinshah commented 2 years ago
[espresso] [Espresso::overflow_error] /private/var/containers/Bundle/Application/10D0F5D6-F27C-4DC7-B2BA-3B7ADCDD8D5B/AnimeGanFace.app/ugatitImage.mlmodelc/model.espresso.net:2
2022-04-01 18:59:07.227784+0530 AnimeGanFace[2720:209324] [coreml] Error Domain=com.apple.CoreML Code=1 "Failed to convert output activation_out to image" UserInfo={NSLocalizedDescription=Failed to convert output activation_out to image, NSUnderlyingError=0x280a4c390 {Error Domain=com.apple.CoreML Code=0 "Invalid array shape [256, 256, 3] for converting to BGR image. Shape must have at least 3 dimensions, The third dimension to the last (channels) must be 3, and any earlier dimensions must have a size of 1." UserInfo={NSLocalizedDescription=Invalid array shape [256, 256, 3] for converting to BGR image. Shape must have at least 3 dimensions, The third dimension to the last (channels) must be 3, and any earlier dimensions must have a size of 1.}}}

Runtime error.