Howdy.
I’m building for os 26 (macOS and iOS attempted) I am trying to use a model I’ve created in Roboflow. Following the instructions here I was able to connect my API, and build with the Swift Package.
However, I am finding I get the following error:
Model compilation/processing error: No relevant model files found in ZIP archive
I’ve verified:
- Same error on macOS, iOS Simulator, iPhone HW
- Verified I AM downloading a zip, but it’s 128 b so it’s just an empty zip
- Verified the model, API key, etc are correct
-
- Negative test: Confirmed that if I “incorrectly” input invalid model name it throws a different error
I have filed a bug with Roboflow, no reply yet.
Thanks!
I’ve continued my research as I haven’t heard from support or other avenues. I’ve verified with the credentials in the Swift Package tests:
API Key: rf_EsVTlbAbaZPLmAFuQwWoJgFpMU82
Model: hat-1wxze-g6xvw
Version: 1
I’ve verified within the Swift Package itself and a sample project I created to test that these details work. Noting that the API key appears to be the public one, I attempted to use mine as well with no improvement.
I triple checked that I am copying the correct values from the model and version per:
Thinking it might be an issue with my model being private I quickly made it public, tested again. Continued to not be able to access this model.
Any tips?
@Ford Any thoughts here? Thanks in advance.
I’ve confirmed that I am successfully querying the model, this appears to be a server side issue…
{
“coreml”: {
“name”: “XX_MODEL_NAME_XX”,
“type”: “instance-segmentation”,
“icon”: “XX_ICON_BASE64_XX”,
“iconHasAnnotation”: true,
“annotation”: “XX_CLASS_NAME_XX”,
“colors”: {
“background_class83422”: “#C7FC00”,
“XX_CLASS_NAME_XX”: “#8622FF”,
“XX_CLASS_NAME_XX”: “#FE0056”
},
“modelType”: “rfdetr-seg-preview”,
“classes”: [“background_class83422”, “XX_CLASS_NAME_XX”, “XX_CLASS_NAME_XX”],
“model”: “https://repo.roboflow.com/models/--URL--WITH--GOOG-CREDENTIAL”,
“environment”: “https://repo.roboflow.com/models/--URL--WITH--GOOG-CREDENTIAL”
}
}
The actual 404 error response includes the following:
<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
</Error>
Unfortunately, after attempting multiple ways to get the CoreML model I ended up doing the following:
- Downloading the database with annotations for YOLOv8
- Running the annotations through another training session locally on my computer
- CoreML model obtained
Pretty disappointed that a clear bug exists on the platform and seemingly no resolution or communication is possible with the team. In the end I guess I’ll use Roboflow for annotation until my current subscription lapses then either write my own tool or find a competitor.