{"id":21188781,"url":"https://github.com/calcuis/ai-picture-generator-gui","last_synced_at":"2026-02-05T13:32:47.864Z","repository":{"id":212195430,"uuid":"730927384","full_name":"calcuis/ai-picture-generator-gui","owner":"calcuis","description":"ai picture (i.e., cryptopunk) generator","archived":false,"fork":false,"pushed_at":"2023-12-14T03:10:12.000Z","size":7395,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-18T10:53:03.038Z","etag":null,"topics":["artificial-neural-networks","cryptopunks","generator","machine-learning"],"latest_commit_sha":null,"homepage":"","language":"PureBasic","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/calcuis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-12-13T01:31:11.000Z","updated_at":"2023-12-13T02:28:25.000Z","dependencies_parsed_at":"2024-11-20T23:00:14.299Z","dependency_job_id":null,"html_url":"https://github.com/calcuis/ai-picture-generator-gui","commit_stats":null,"previous_names":["calcuis/ai-picture-generator-gui"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/calcuis/ai-picture-generator-gui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calcuis%2Fai-picture-generator-gui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calcuis%2Fai-picture-generator-gui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calcuis%2Fai-picture-generator-gui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calcuis%2Fai-picture-generator-gui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/calcuis","download_url":"https://codeload.github.com/calcuis/ai-picture-generator-gui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calcuis%2Fai-picture-generator-gui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29122615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T10:47:47.471Z","status":"ssl_error","status_checked_at":"2026-02-05T10:45:08.119Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["artificial-neural-networks","cryptopunks","generator","machine-learning"],"created_at":"2024-11-20T18:47:58.121Z","updated_at":"2026-02-05T13:32:47.838Z","avatar_url":"https://github.com/calcuis.png","language":"PureBasic","funding_links":[],"categories":[],"sub_categories":[],"readme":"## cryptopunk generator GUI version\nThe provided Python code is a simple graphical user interface (GUI) application using the Tkinter library for generating and displaying CryptoPunk images. CryptoPunks are unique 24x24 pixel art characters (selected as an example here for demonstration purpose). The application uses a pre-trained TensorFlow model to generate these images based on random input noise. Here's a breakdown of the code:\n\nImport Libraries:\n- `tensorflow` for machine learning functionalities.\n- `matplotlib.pyplot` for plotting generated images.\n- `random` for generating random numbers.\n- `tkinter` for creating the GUI.\n- `PIL` (Python Imaging Library) for working with images.\n\nGUI Setup:\n- It creates a `Tkinter` window titled \"CryptoPunk Generator\" with a specific column configuration.\n- It loads an initial image (\"output.png\") and displays it in the `Tkinter` window using the Label widget.\n\nImage Update Function:\n- `update_img` function reloads the image from the file (\"output.png\") and updates the displayed image in the `Tkinter` window.\n\nImage Generation Function:\n- `generate` function takes a parameter number representing the number of CryptoPunk images to generate.\n- It loads a pre-trained `TensorFlow` model from the \"./models/\" directory.\n- Generates random noise based on the specified number and a seed.\n- Uses the generator model to generate a batch of images.\n- Plots the generated images in a grid using `Matplotlib` and saves the composite image as \"output.png.\"\n- Calls `update_img` to update the displayed image in the `Tkinter` window.\n\nThree buttons are created for different generation options (plus terminator):\n- \"Generate 1 cryptopunk\" button calls `generate(1)`\n- \"Generate 3x3 cryptopunks\" button calls `generate(3)`\n- \"Generate 5x5 cryptopunks\" button calls `generate(5)`\n- \"Terminate\" button quits the `Tkinter` application (click this for a graceful termination of the generator).\n\nOverall, this code provides a simple interface for generating CryptoPunk images with different options for the number of images to generate. The generated images are displayed in the `Tkinter` window using `Matplotlib`.\n\n[\u003cimg src=\"https://raw.githubusercontent.com/calcuis/ai-picture-generator-gui/master/output.png\" width=\"400\" height=\"400\"\u003e](https://github.com/calcuis/ai-picture-generator-gui/blob/main/output.png)\n\nRun it with\n```\npython generator.py\n```\n\n**References**\n\nhuggingface.co/huggan/crypto-gan\n\ngithub.com/dimitreOliveira/cryptogans\n\ngithub.com/teddykoker/cryptopunks-gan\n\ngithub.com/calcuis/ai-picture-generator\n\ntensorflow.org/tutorials/generative/dcgan\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalcuis%2Fai-picture-generator-gui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalcuis%2Fai-picture-generator-gui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalcuis%2Fai-picture-generator-gui/lists"}