{"id":21294367,"url":"https://github.com/gaurav-jaiswal-1/text2image-generation","last_synced_at":"2025-08-30T23:47:26.526Z","repository":{"id":255661650,"uuid":"852785106","full_name":"Gaurav-Jaiswal-1/Text2Image-Generation","owner":"Gaurav-Jaiswal-1","description":"Text-to-Image Generation builds a model to create images from text descriptions using custom neural networks. Features include training, evaluation, and an interactive web interface for real-time text-to-image synthesis. ","archived":false,"fork":false,"pushed_at":"2024-10-31T18:01:38.000Z","size":34129,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-31T19:17:07.704Z","etag":null,"topics":["css","deep-learning","flask","html","javascript","python"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/Gaurav-Jaiswal-1.png","metadata":{"files":{"readme":"docs/README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","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-09-05T12:25:45.000Z","updated_at":"2024-10-31T18:01:41.000Z","dependencies_parsed_at":"2024-10-31T19:27:09.681Z","dependency_job_id":null,"html_url":"https://github.com/Gaurav-Jaiswal-1/Text2Image-Generation","commit_stats":null,"previous_names":["gaurav-jaiswal-1/text2image-generation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaurav-Jaiswal-1%2FText2Image-Generation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaurav-Jaiswal-1%2FText2Image-Generation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaurav-Jaiswal-1%2FText2Image-Generation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaurav-Jaiswal-1%2FText2Image-Generation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gaurav-Jaiswal-1","download_url":"https://codeload.github.com/Gaurav-Jaiswal-1/Text2Image-Generation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225741059,"owners_count":17516895,"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":["css","deep-learning","flask","html","javascript","python"],"created_at":"2024-11-21T13:59:02.710Z","updated_at":"2024-11-21T13:59:03.434Z","avatar_url":"https://github.com/Gaurav-Jaiswal-1.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Text-to-Image Generation from Scratch\n\nWelcome to the Text-to-Image Generation project! This repository contains a complete implementation of a model that generates images from textual descriptions. We build everything from scratch, using custom neural networks and integrating them with a web application.\n\n## Project Overview\n\nThis project includes:\n\n- **Model Architecture**: Custom neural network models for generating images from text descriptions.\n- **Training Scripts**: Code to train the model on your own data.\n- **Evaluation**: Metrics to assess the quality of generated images.\n- **Web Interface**: An interactive webpage to input text and view generated images.\n\n## Features\n\n- Train your own model using custom architectures.\n- Interactive web interface for text-to-image generation.\n- Metrics for evaluating image quality, including FID and BLEU scores.\n- Modular and clean codebase with separate components for data handling, model building, training, evaluation, and web integration.\n\n## Installation\n\n### Prerequisites\n\n- Python 3.8 or higher\n- Flask\n- PyTorch\n- Other Python dependencies listed in `requirements.txt`\n\n### Setup\n\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/Gaurav-Jaiswal-1/Text2Image-Generation.git\n   cd text-to-image-generation\n   ```\n\n2. **Install dependencies**:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n## Usage\n\n### Training the Model\n\n1. **Preprocess the Data**:\n   Prepare your dataset by running:\n   ```bash\n   python scripts/preprocess_data.py\n   ```\n\n2. **Train the Model**:\n   Start training the model with:\n   ```bash\n   python training/train.py --config config.yaml\n   ```\n\n3. **Monitor Training**:\n   Use TensorBoard to visualize the training process:\n   ```bash\n   tensorboard --logdir logs/\n   ```\n\n### Running the Web Application\n\n1. **Start the Backend Server**:\n   ```bash\n   python web/backend/server.py\n   ```\n\n2. **Access the Web Interface**:\n   Open your web browser and go to `http://localhost:5000` to use the interactive text-to-image generation interface.\n\n### Generating Images from Text\n\nTo generate images without using the web interface:\n```bash\npython scripts/generate_images.py --text \"A sunny beach with palm trees\"\n```\n\n### Evaluating the Model\n\nAssess the quality of the generated images:\n```bash\npython evaluation/evaluate.py --model checkpoints/generator.pth\n```\n\n## Project Structure\n\n```bash\ntext-to-image-generation/\n├── data/                 # Datasets and preprocessing scripts\n├── models/               # Custom neural network models\n├── training/             # Training scripts and loss functions\n├── evaluation/           # Evaluation metrics and visualization\n├── web/                  # Web application (frontend and backend)\n├── utils/                # Utility functions (logging, checkpointing, etc.)\n├── scripts/              # Utility scripts (data processing, etc.)\n├── tests/                # Unit tests for various components\n├── docs/                 # Documentation\n├── requirements.txt      # Python dependencies\n├── setup.py              # Installation script\n├── README.md             # Project overview (you are here)\n└── CONTRIBUTING.md       # Contribution guidelines\n```\n\n## Documentation\n\n- [README.md](README.md): Overview and instructions.\n- [CONTRIBUTING.md](CONTRIBUTING.md): How to contribute to this project.\n- [docs/CHANGELOG.md](docs/CHANGELOG.md): Change log for tracking updates.\n\n## Contributing\n\nWe welcome contributions to enhance this project. Please refer to the [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to get involved.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Contact\n\nFor any questions or issues, please open an issue on this repository or contact us at jaiswalgaurav863@gmail.com\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaurav-jaiswal-1%2Ftext2image-generation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaurav-jaiswal-1%2Ftext2image-generation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaurav-jaiswal-1%2Ftext2image-generation/lists"}