{"id":21649455,"url":"https://github.com/m4hassan/sketch-synth","last_synced_at":"2026-05-05T19:33:22.875Z","repository":{"id":263204444,"uuid":"889663081","full_name":"m4hassan/sketch-synth","owner":"m4hassan","description":"A web app for generating hyper-realistic portraits from hand-drawn sketches.","archived":false,"fork":false,"pushed_at":"2024-11-22T20:21:35.000Z","size":241,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T07:59:04.833Z","etag":null,"topics":["django","stablediffusion"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/m4hassan.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":"2024-11-16T22:28:37.000Z","updated_at":"2024-11-22T20:21:39.000Z","dependencies_parsed_at":"2025-01-25T05:32:16.074Z","dependency_job_id":null,"html_url":"https://github.com/m4hassan/sketch-synth","commit_stats":null,"previous_names":["m4hassan/sketch-synth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/m4hassan/sketch-synth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4hassan%2Fsketch-synth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4hassan%2Fsketch-synth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4hassan%2Fsketch-synth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4hassan%2Fsketch-synth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m4hassan","download_url":"https://codeload.github.com/m4hassan/sketch-synth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4hassan%2Fsketch-synth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32665016,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"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":["django","stablediffusion"],"created_at":"2024-11-25T07:30:56.310Z","updated_at":"2026-05-05T19:33:22.857Z","avatar_url":"https://github.com/m4hassan.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sketch-Synth: Hyper Realistic Portrait Generation\n\n## Overview\n\n**Sketch-Synth** is a web application that allows users to generate hyper-realistic portraits from hand-drawn sketches. Utilizing a StableDiffusion model through the ModelsLab API, Sketch-Synth provides a seamless and effective solution for creating high-quality images from simple sketches.\n\n## Features\n\n- **User Registration and Authentication:** Users can register, log in, and manage their profiles.\n- **Sketch Upload:** Users can upload their hand-drawn sketches to the platform.\n- **Realistic Portrait Generation:** The application uses the ModelsLab API to convert sketches into hyper-realistic portraits.\n- **Gallery:** Users can view all their generated images in a personal gallery.\n- **User Profile:** Users can view and update their profile information.\n\n## Tech Stack\n\n- **Backend:** Django\n- **Frontend:** HTML, Tailwind CSS, JavaScript\n- **Storage:** Firebase Storage\n- **API:** ModelsLab API for image generation\n\n## Installation\n\n### Prerequisites\n\n- Python 3.8+\n- Firebase account\n- ModelsLab API access\n\n### Steps\n\n1. **Clone the repository:**\n    ```sh\n    git clone https://github.com/m4hassan/sketch-synth.git\n    cd sketch-synth\n    ```\n\n2. **Create a virtual environment:**\n    ```sh\n    python -m venv venv\n    source venv/bin/activate  # On Windows use `venv\\Scripts\\activate`\n    ```\n\n3. **Install the dependencies:**\n    ```sh\n    pip install -r requirements.txt\n    ```\n\n4. **Configure Firebase:**\n    - Create a Firebase project and enable Firebase Storage.\n    - Add your Firebase credentials to `firebase.py` file.\n\n    ```python\n    # firebase.py\n    import pyrebase\n\n    FIREBASE_CONFIG = {\n        \"apiKey\": \"your_api_key\",\n        \"authDomain\": \"your_project_id.firebaseapp.com\",\n        \"projectId\": \"your_project_id\",\n        \"storageBucket\": \"your_project_id.appspot.com\",\n        \"messagingSenderId\": \"your_messaging_sender_id\",\n        \"appId\": \"your_app_id\",\n        \"measurementId\": \"your_measurement_id\",\n        \"databaseURL\": \"\"\n    }\n    ```\n\n5. **Run database migrations:**\n    ```sh\n    python manage.py migrate\n    ```\n\n6. **Create a superuser:**\n    ```sh\n    python manage.py createsuperuser\n    ```\n\n7. **Run the development server:**\n    ```sh\n    python manage.py runserver\n    ```\n\n## Usage\n\n1. **Register/Login:**\n   - Register for an account or log in if you already have one.\n\n2. **Upload a Sketch:**\n   - Navigate to the sketch upload page.\n   - Upload your hand-drawn sketch and provide the necessary prompts.\n   - Submit the form to generate a hyper-realistic portrait.\n\n3. **View Gallery:**\n   - View all your generated images in your personal gallery.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm4hassan%2Fsketch-synth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm4hassan%2Fsketch-synth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm4hassan%2Fsketch-synth/lists"}