{"id":15980164,"url":"https://github.com/thinh-vu/ai_artist","last_synced_at":"2025-10-24T03:37:28.783Z","repository":{"id":63869116,"uuid":"562157283","full_name":"thinh-vu/ai_artist","owner":"thinh-vu","description":"Image generator using Stable Diffusion AI model","archived":false,"fork":false,"pushed_at":"2023-06-08T05:37:20.000Z","size":6713,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-23T23:21:17.850Z","etag":null,"topics":["art-generator","image-generator","image-prompt","stable-diffusion","text-to-image"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/thinh-vu.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":"2022-11-05T13:40:50.000Z","updated_at":"2025-03-23T11:19:44.000Z","dependencies_parsed_at":"2025-02-18T05:00:33.369Z","dependency_job_id":"cd45e34e-b805-4469-9455-e371f2773740","html_url":"https://github.com/thinh-vu/ai_artist","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thinh-vu/ai_artist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinh-vu%2Fai_artist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinh-vu%2Fai_artist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinh-vu%2Fai_artist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinh-vu%2Fai_artist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinh-vu","download_url":"https://codeload.github.com/thinh-vu/ai_artist/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinh-vu%2Fai_artist/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280732276,"owners_count":26381622,"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","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["art-generator","image-generator","image-prompt","stable-diffusion","text-to-image"],"created_at":"2024-10-08T00:01:58.636Z","updated_at":"2025-10-24T03:37:28.752Z","avatar_url":"https://github.com/thinh-vu.png","language":"Jupyter Notebook","funding_links":["https://patreon.com/thinhvu?utm_medium=clipboard_copy\u0026utm_source=copyLink\u0026utm_campaign=creatorshare_creator"],"categories":[],"sub_categories":[],"readme":"# I. INTRODUCTION\n`ai_artist` made generating images easy using the Stable Diffusion AI model.\n\n\u003cdiv id=\"badges\" align=\"center\"\u003e\n\u003cimg src=\"https://img.shields.io/pypi/pyversions/ai_artist?logoColor=brown\u0026style=plastic\" alt= \"Version\"/\u003e\n\u003cimg src=\"https://img.shields.io/pypi/dm/ai_artist\" alt=\"Download Badge\"/\u003e\n\u003cimg src=\"https://img.shields.io/github/last-commit/thinh-vu/ai_artist\" alt=\"Commit Badge\"/\u003e\n\u003cimg src=\"https://img.shields.io/github/license/thinh-vu/ai_artist?color=red\" alt=\"License Badge\"/\u003e\n\u003c/div\u003e\n\n# II. HOW TO USE THIS PROJECT\n\u003e View a quick demo video [here](https://www.youtube.com/watch?v=L6uo5F2SS9o\u0026t=31s\u0026ab_channel=Python%E1%BB%A8ngD%E1%BB%A5ng)\n\n## 2.1. Install this package\n\n- Using pip to install the pre-built package on Pypip `pip install ai_artist`\n- If you want to use the latest **ai_artist** version instead of the stable one, you can install it from the source with the following command:\n`pip install git+https://github.com/thinh-vu/ai_artist.git@main`\n\n_(*) You might need to insert a `!` before your command when running terminal commands on Google Colab._\n\n## 2.2. Set up your project\n1. Input the Huggingface token key to the Google Colab form, run the code to save login info by the `login()` function\n2. Import the whole package to your project: `from ai_artist import *`\n3. Install dependencies: `!pip install transformers`\n4. Set up the environment: `initialize()`\n5. Set up the pipeline: `pipe = pipegen()`\n\n## 2.3. Start generating images\n6. Provide your image description to the prompt: `image = image_gen(\"YOUR_IMAGE_DESCRIPTION\", pipe)`\n7. Save your image `image.save(f'INPUT_YOUR_IMAGE_NAME')`\n\n# III. RERERENCES\n## 3.1. Get the HuggingFace API key\n\n**Generate a token key** with a **read** permission. Read the doc [here](https://huggingface.co/docs/hub/security-tokens)\n\n**About Huggingface**\n\n\u003e [Huggingface](https://huggingface.co/about) is a community and data science platform that provides:\n\u003e - Tools that enable users to build, train and deploy ML models based on open source (OS) code and technologies.\n\u003e - A place where a broad community of data scientists, researchers, and ML engineers can come together and share ideas, get support and contribute to open source projects.\n\n## 3.2. Google Colab and GPU runtime are highly recommended\nGo to the Google Colab menu: Select `Runtime` \u003e `Change runtime type` and make sure that `GPU` has been chosen. You can run this AI model way faster with GPU on Google Colab than the normal CPU or your personal computer.\n\n\u003cdiv align='center'\u003e\n\n![gpu_setting](https://raw.githubusercontent.com/thinh-vu/ur_audio_sub/main/src/Google%20Colab%20runtime%20GPU.png)\n\n\u003c/div\u003e\n\n### Stable Diffusion \u0026 StabilityAI\n- Stable Diffusion on Github: [here](https://github.com/CompVis/stable-diffusion)\n\n- Stable Diffusion prompt guide and examples [here](https://strikingloo.github.io/stable-diffusion-vs-dalle-2)\n\n# IV. 🙋‍♂️ CONTACT INFORMATION\n\n\u003cdiv id=\"badges\" align=\"center\"\u003e\n  \u003ca href=\"https://www.linkedin.com/in/thinh-vu\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/LinkedIn-blue?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white\" alt=\"LinkedIn Badge\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.messenger.com/t/mr.thinh.ueh\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Messenger-00B2FF?style=for-the-badge\u0026logo=messenger\u0026logoColor=white\" alt=\"Messenger Badge\"/\u003e\n  \u003ca href=\"https://www.youtube.com/channel/UCYgG-bmk92OhYsP20TS0MbQ\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/YouTube-red?style=for-the-badge\u0026logo=youtube\u0026logoColor=white\" alt=\"Youtube Badge\"/\u003e\n  \u003c/a\u003e\n  \u003c/a\u003e\n    \u003ca href=\"https://github.com/thinh-vu\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/GitHub-100000?style=for-the-badge\u0026logo=github\u0026logoColor=white\" alt=\"Github Badge\"/\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n---\n\nIf you want to support my open-source projects, you can \"buy me a coffee\" via [Patreon](https://patreon.com/thinhvu?utm_medium=clipboard_copy\u0026utm_source=copyLink\u0026utm_campaign=creatorshare_creator) or Momo e-wallet (VN). Your support will help to maintain my blog hosting fee \u0026 to develop high-quality content.\n\n\u003cdetails\u003e\n\u003csummary\u003e Momo QR \u003c/summary\u003e\n\n![momo-qr](https://github.com/thinh-vu/vnstock/blob/main/src/momo-qr-thinhvu.jpeg?raw=true)\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinh-vu%2Fai_artist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinh-vu%2Fai_artist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinh-vu%2Fai_artist/lists"}