/CodeMorpheus

CodeMorpheus: Generate code self-portraits with one click(一键生成代码自画像,决策型 AI + 生成式 AI)

Primary LanguagePythonApache License 2.0Apache-2.0

CodeMorpheus

English | 简体中文

🚀 🚀 "Have you ever contemplated that code can do more than just execute logic, but can also be transformed into visual art? This is not just an event; it's an artistic experiment. Dear coding enthusiasts, in celebration of this special day that belongs to us, OpenDILab has prepared a spectacular event for all the 'code monkeys' out there. Let your code 'paint' the world in your heart."

P.S. remember to give us a star stars - codemorpheus

🤩 Quick Start

Input Code Lines

You can access it online, enter the code snippet you wish to generate into the input box, click 'submit and generate', and after waiting for a few seconds, you can obtain a portrait of that code segment.

Upload Code File

You can access it online, click ‘Upload code via file’, and select the code you want to generate, click 'submit and generate', and after waiting for a few seconds, you can obtain a portrait of that code segment.

✍️ Feature

  • Release inference service
  • Dataset examples
  • Release inference model
  • Access to more open source text-to-image models
  • Release code-prompt-self-portrait dataset
  • Release RL fine-tuning code
  • Support more programming languages

Project Structure

.
├── LICENSE
├── assets                       --> media assets (please indicate the source if you want to reprint)
├── template_data                --> data for examples
├── analysis.py                  --> code for usage statistics
├── app.py                       --> code for Gradio App
├── code2pil.py                  --> code for image generation
├── examples.py                  --> code examples
└── language_model.py            --> code for language model

💬 Feedback and Contribution

  • File an issue on Github

  • Contact our email (opendilab@pjlab.org.cn)

  • We appreciate all the feedback and contributions to improve CodeMorpheus, both algorithms and system designs.

  • Discuss on DI-engine's WeChat group (i.e. add us on WeChat: ding314assist)

License

All code within this repository is under Apache License 2.0.

(back to top)