aszc-dev / ComfyUI-CoreMLSuite

A set of custom nodes for ComfyUI that allow you to use Core ML models in your ComfyUI workflows.
GNU General Public License v3.0
92 stars 8 forks source link

Convert checkpoint: file not found #39

Closed coffee4u closed 2 months ago

coffee4u commented 2 months ago

When converting a checkpoint, the model will be converted to the .mlpackage file. However, after conversion, the node will check whether there exists a .mlmodelc format file in the 'unet' directory. This results in an error and prevents further progress. I am using the 'convert checkpoint' example workflow

Screenshot 2024-05-09 at 8 43 49 PM Screenshot 2024-05-09 at 8 44 08 PM
ManuelEsteves commented 2 months ago

Hello,

I had the same problem.

In fact, you need to have XCode installed on your Mac. It is apparently necessary to convert ‘mlmodelc’ files. After installing Xcode, it worked for me

coffee4u commented 2 months ago

Thanks @ManuelEsteves , I have upgraded my xcode to 15.3 + xcodeselect install... Still same..

ManuelEsteves commented 2 months ago

Hello @coffee4u ,

Personally, I installed the full Xcode (v15.2) from the Apple Store.

You can try changing the path:

To specify the use of Xcode.app (IDE): sudo xcode-select --switch /Applications/Xcode.app

To specify the use of CommandLineTools : sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

One of the two should work, otherwise, if you don't use XCode very much, I'd advise you to reinstall it from the Apple Store, as this immediately solved the problem

coffee4u commented 2 months ago

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer Works for me, thanks @ManuelEsteves !