loadResources() unloadResources() } Both .mlpackage and .mlmodelc models are compiled upon first load. ʢதུʣ .mlmodelc files do cache this compiled asset and non-first load times are reduced to just a few seconds.
= 768, height = 768, bpc = 8, bpp = 24, row bytes = 2304 kCGImageAlphaNone | 0 (default byte order) | kCGImagePixelFormatPacked is mask? No, has masking color? No, has soft mask? No, has matte? No, should interpolate? Yes)] in 83.99049496650696 1ຕ͋ͨΓ 83.99 ඵ ىಈ࣌ؒґવͱͯ͠ 5 ͔͔͍ͬͯΔ
with low-bit palettization: 1, 2, 4, 6 or 8 bits. ʢχϡʔϥϧɾΤϯδϯɺ ϏοτͷύϨλΠζͰϞσϧΛߴԽͰ͖Δʣ compressed weights are faster to fetch from memory ... ʢѹॖ͞ ΕͨΣΠτϝϞϦ͔ΒͷϑΣον͕ߴʹͳΓɺʣ 5 5 apple/ml-stable-diffusion: Stable Diffusion with Core ML on Apple Silicon ͷREADMEΑΓ
textEncoder: 30.462964057922363 time to load decoder: 3.1042929887771606 time to load encoder: 2.146523952484131 Pipeline resources loaded in 106.28662097454071