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.

Fatal error: Can't find the model file!: file #7

@wonbeomjang

Description

@wonbeomjang

Hello. I'm going to apply custom semantic segmentation model on IOS device. (mobilenetV2 + SegNet)
But When I import the module, the problem occur.

OS: Mac OS 10.15.1
Python 3.7
Pytorch 1.3.1
Libtorch 1.3.1

Fatal error: Can't find the model file!: file /Users/aiel/Desktop/ios-demo-app/HelloWorld/HelloWorld/HelloWorld/ViewController.swift, line 11
2019-12-09 22:18:38.472617+0900 HelloWorld[37912:926691] Fatal error: Can't find the model file!: file /Users/aiel/Desktop/ios-demo-app/HelloWorld/HelloWorld/HelloWorld/ViewController.swift, line 11

I convert python model to trace model using jit, I see the file path is right by printing path in TorchModule.mm
this problem occurs when I call TorchModule, ViewController.swift, line 8 and TorchModule.mm, line 18

let module = TorchModule(fileAtPath: filePath)
_impl = torch::jit::load(filePath.UTF8String);

thanks for reading

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