Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

ios-demo-app/ ImageSegmentation failed to load model error or Thread 8: signal SGABRT #94

@nicspect

Description

@nicspect

Hey!

I'm using the ImageSegmentation folder and following this tutorial.

LibTorch = 1.10.0
LibTorch-Lite = 1.10.0
PyTorch = 1.12.1
xcode = 14.0.1

From what I can see, the issue is simple, torch.JIT.script models do not work in my setup. I've tried both LibTorch and LibTorch-Lite. When I trace models I can trace in torch, I can load the model.

This is the line where I get all my errors:
_impl = torch::jit::load(filePath.UTF8String); or _impl = torch::jit::_load_for_mobile(filePath.UTF8String);

Any help would be great!

Nic

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions