{"id":22771646,"url":"https://github.com/fmxexpress/ai-image-colorizer","last_synced_at":"2025-03-30T12:14:45.391Z","repository":{"id":265670369,"uuid":"868732495","full_name":"FMXExpress/AI-Image-Colorizer","owner":"FMXExpress","description":"Use AI to add color to a black and white photo using Python and FireMonkey.","archived":false,"fork":false,"pushed_at":"2024-10-07T04:51:33.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T20:23:05.320Z","etag":null,"topics":["ai","colorizer","delphifmx","firemonkey","python","replicate-api"],"latest_commit_sha":null,"homepage":"https://www.fmxexpress.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FMXExpress.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-07T04:51:29.000Z","updated_at":"2025-02-04T00:39:31.000Z","dependencies_parsed_at":"2024-11-30T12:32:59.567Z","dependency_job_id":"6203308e-9363-42c3-be3a-0569de1c69f1","html_url":"https://github.com/FMXExpress/AI-Image-Colorizer","commit_stats":null,"previous_names":["fmxexpress/ai-image-colorizer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMXExpress%2FAI-Image-Colorizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMXExpress%2FAI-Image-Colorizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMXExpress%2FAI-Image-Colorizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMXExpress%2FAI-Image-Colorizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FMXExpress","download_url":"https://codeload.github.com/FMXExpress/AI-Image-Colorizer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246314149,"owners_count":20757463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","colorizer","delphifmx","firemonkey","python","replicate-api"],"created_at":"2024-12-11T16:16:06.639Z","updated_at":"2025-03-30T12:14:45.375Z","avatar_url":"https://github.com/FMXExpress.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Image Colorizer + Replicate API\n\nThis is a desktop application built with DelphiFMX that allows you to upload a grayscale image and automatically colorize it using the [Replicate API](https://replicate.com/). The app provides an easy-to-use interface for selecting images, displaying the original grayscale image alongside the colorized version, and managing the processing status.\n\n## Features\n\n- **Image Upload**: Select a grayscale image (`.png`, `.jpg`, or `.jpeg`).\n- **Image Display**: View the original and colorized images side by side.\n- **Status Updates**: See real-time status messages while the image is being processed.\n- **Replicate API**: Uses the `piddnad/ddcolor` model from Replicate for colorization.\n- **Responsive Design**: Clean, responsive layout built with DelphiFMX.\n- **Error Handling**: Displays error messages if image processing fails.\n\n## Prerequisites\n\n1. **Python**: This application requires Python to be installed on your system.\n2. **Replicate API Key**: You will need a [Replicate API Key](https://replicate.com/account) to run the app. Once you have the key, set it as an environment variable:\n   ```bash\n   export REPLICATE_API_TOKEN=\"your_replicate_api_key\"\n   ```\n\n## Installation\n\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/yourusername/ai-image-colorizer-fmx.git\n   cd ai-image-colorizer-fmx\n   ```\n\n2. **Install required Python packages**:\n   Ensure that you have `replicate` installed:\n   ```bash\n   pip install replicate\n   ```\n\n3. **Run the Application**:\n   You can run the application directly using Python:\n   ```bash\n   python colorizier.py\n   ```\n\n## Usage\n\n1. **Upload an Image**: Click the \"Select\" button and choose a grayscale image (`.png`, `.jpg`, or `.jpeg`) from your local system.\n2. **Wait for Processing**: The status bar will show updates on the colorization progress. The colorization is done using the `piddnad/ddcolor` model from Replicate.\n3. **View the Results**: Once the colorization is complete, the original grayscale image and the newly colorized image will be displayed side by side.\n\n## Project Structure\n\n```bash\nai-image-colorizer-fmx/\n│\n├── colorizer.py            # Main entry point for the application\n├── Air.style          # DelphiFMX style used for the UI\n└── README.md          # This README file\n```\n\n## Models Used\n\nThe application uses the [piddnad/ddcolor](https://replicate.com/piddnad/ddcolor) model for colorizing grayscale images. You can view more details about the model on its [Replicate page](https://replicate.com/piddnad/ddcolor).\n\n## Notes\n\n- **API Limitations**: Ensure that your Replicate account has enough credits to run the colorization model.\n- **Performance**: The image processing time will vary depending on the size of the image and the speed of the Replicate model.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmxexpress%2Fai-image-colorizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffmxexpress%2Fai-image-colorizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmxexpress%2Fai-image-colorizer/lists"}