ChatGPT Translation of Program Code for Image Sketch Abstraction
Lists
Only you see this
Abstract
The migration from MATLAB to Python (M-to-PY) has gained significant traction in recent computational research. While MATLAB has long served as a linchpin in myriad scientific endeavors, there's an emerging trend to rejuvenate these projects using Python's extensive AI tools and libraries. This study presents a semi-automated process for M-to-PY conversion, using a detailed case study of an image skeletonization project comprising fifteen MATLAB files and a 1404-image dataset. Skeletonization is foundational for ongoing 3D motion detection research using AI transformers, predominantly developed in Python. The utilization of ChatGPT-4, acting as an AI co-programmer, is pivotal in this conversion. By leveraging the public OpenAI API, we developed an M-to-PY converter prototype, evaluated its efficacy using test cases from the Bard bot, and subsequently employed the converted code in an AI application. The dual contributions encompass a well-tested M-to-PY converter and a Skeleton App capable of sketching and skeletonizing any given image, enriching the AI toolset. This study accentuates how AI resources, like ChatGPT-4, can simplify code transitions, opening doors for innovative AI implementations using primarily MATLAB-coded scientific research.
BibTeX
@misc{kumar2023chatgpt,
author = {Yulia Kumar and Zachary Gordon and Oluwatunmise Alabi and J. Jenny Li and Kathryn Leonard and Linda Ness and Patricia Morreale},
title = {{ChatGPT Translation of Program Code for Image Sketch Abstraction}},
year = {2023},
doi = {10.20944/preprints202310.1906.v1},
howpublished = {Preprints.org},
}Loading related content...