apple / apple/coremltools

Is it possible for the coremltools project to add support for converting PaddlePaddle models to CoreML models?

Open
#1,776 2 comments 0 reactions 0 assignees View on GitHub
feature request
Dominant language
Python
Stars
5.4k
Forks
850
Avg merge
4d 5h
Merged PRs (30d)
10

Description

## ❓Question

Hi there,

I recently created a [basic implement](https://github.com/lishicheng1996/coremltools/tree/paddle_frontend) for converting a [PaddlePaddle](https://github.com/PaddlePaddle/Paddle) model to a CoreML model using the coremltools Python package, and I was wondering if it would be possible to officially add support for PaddlePaddle in the coremltools project. If so, I would be happy to dedicate some time to contribute to this effort.

PaddlePaddle is a powerful deep learning framework developed by Baidu that offers several advantages, including:

1. Faster training on large-scale datasets thanks to its highly optimized distributed training [capabilities](https://github.com/PaddlePaddle/PaddleFleetX/blob/develop/docs/images/throughput_compare_graph.png)
2. Efficient [deployment](https://github.com/PaddlePaddle/FastDeploy) to a variety of hardware devices, including servers, personel computers, mobile and embedded devices
3. Comprehensive set of pre-built models and libraries, including computer vision, natural language processing, and speech processing [models](https://github.com/PaddlePaddle/PaddleHub)
4. Active developer community and extensive set of collaborative tools for model building and sharing

Given these advantages, it would be great if coremltools could add support for converting PaddlePaddle models to CoreML models. This would allow PaddlePaddle users to take advantage of the many benefits of CoreML, including native integration with Apple's ecosystem and seamless integration with Xcode for development and testing.

Thanks for your consideration, and please let me know if there's anything I can do to help with this effort.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the linked paddle_frontend branch and the coremltools Python package to understand the existing PaddlePaddle conversion implementation. Compare that work with the project's current conversion support and determine the scope and requirements for officially supporting PaddlePaddle models; done means an agreed integration plan, not just a feasibility answer.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.