Update src/streamlit_app.py
Browse files- src/streamlit_app.py +5 -5
src/streamlit_app.py
CHANGED
|
@@ -12,7 +12,7 @@ st.set_page_config(layout="wide", page_title="Synthetic Image Generator - Condit
|
|
| 12 |
|
| 13 |
TEXTS = {
|
| 14 |
"en": {
|
| 15 |
-
"title": "RAYgan Datasets Generator
|
| 16 |
"description": "Uses a **Conditional Generative Adversarial Network (GAN)** to generate synthetic clothing images.",
|
| 17 |
"model_source": "Model source: [RAYAuser/raygan-zalando-datasetsgen](https://huggingface.co/RAYAuser/raygan-zalando-datasetsgen)",
|
| 18 |
"sidebar_header": "Generation Options",
|
|
@@ -31,14 +31,14 @@ TEXTS = {
|
|
| 31 |
"preview_caption": "Preview {idx}",
|
| 32 |
"download_button": "Download ZIP file",
|
| 33 |
"generation_success": "Generation complete and images ready for download!",
|
| 34 |
-
"model_not_found_error": "Error: The model file could not be found locally. Please ensure 'Raygan-zalando_datasetsgen.pth' is in the
|
| 35 |
"instructions_header": "Instructions:",
|
| 36 |
"instructions_1": "1. Choose your generation mode.",
|
| 37 |
"instructions_2": "2. Enter the number of images you want to create.",
|
| 38 |
"instructions_3": "3. Click on 'Launch Generation'.",
|
| 39 |
},
|
| 40 |
"fr": {
|
| 41 |
-
"title": "RAYgan Datasets Generator
|
| 42 |
"description": "Utilise un modèle **Conditional Generative Adversarial Network (GAN)** pour générer des images synthétiques de vêtements.",
|
| 43 |
"model_source": "Source du modèle : [RAYAuser/raygan-zalando-datasetsgen](https://huggingface.co/RAYAuser/raygan-zalando-datasetsgen)",
|
| 44 |
"sidebar_header": "Options de Génération",
|
|
@@ -57,7 +57,7 @@ TEXTS = {
|
|
| 57 |
"preview_caption": "Aperçu {idx}",
|
| 58 |
"download_button": "Télécharger le fichier ZIP",
|
| 59 |
"generation_success": "Génération terminée et images prêtes pour le téléchargement !",
|
| 60 |
-
"model_not_found_error": "Erreur : Le fichier du modèle n'a pas pu être trouvé localement. Assurez-vous que 'Raygan-zalando_datasetsgen.pth' se trouve dans le répertoire
|
| 61 |
"instructions_header": "Instructions :",
|
| 62 |
"instructions_1": "1. Choisissez votre mode de génération.",
|
| 63 |
"instructions_2": "2. Entrez le nombre d'images que vous souhaitez créer.",
|
|
@@ -96,7 +96,7 @@ Z_DIM = 100
|
|
| 96 |
NGF = 64
|
| 97 |
NUM_CLASSES = 10
|
| 98 |
IMAGE_SIZE = 32
|
| 99 |
-
MODEL_FILE = "
|
| 100 |
|
| 101 |
class_names = [
|
| 102 |
"T-shirt/top", "Trouser", "Pullover", "Dress", "Coat",
|
|
|
|
| 12 |
|
| 13 |
TEXTS = {
|
| 14 |
"en": {
|
| 15 |
+
"title": "RAYgan Datasets Generator",
|
| 16 |
"description": "Uses a **Conditional Generative Adversarial Network (GAN)** to generate synthetic clothing images.",
|
| 17 |
"model_source": "Model source: [RAYAuser/raygan-zalando-datasetsgen](https://huggingface.co/RAYAuser/raygan-zalando-datasetsgen)",
|
| 18 |
"sidebar_header": "Generation Options",
|
|
|
|
| 31 |
"preview_caption": "Preview {idx}",
|
| 32 |
"download_button": "Download ZIP file",
|
| 33 |
"generation_success": "Generation complete and images ready for download!",
|
| 34 |
+
"model_not_found_error": "Error: The model file could not be found locally. Please ensure 'Raygan-zalando_datasetsgen.pth' is in the same directory as this script.",
|
| 35 |
"instructions_header": "Instructions:",
|
| 36 |
"instructions_1": "1. Choose your generation mode.",
|
| 37 |
"instructions_2": "2. Enter the number of images you want to create.",
|
| 38 |
"instructions_3": "3. Click on 'Launch Generation'.",
|
| 39 |
},
|
| 40 |
"fr": {
|
| 41 |
+
"title": "RAYgan Datasets Generator",
|
| 42 |
"description": "Utilise un modèle **Conditional Generative Adversarial Network (GAN)** pour générer des images synthétiques de vêtements.",
|
| 43 |
"model_source": "Source du modèle : [RAYAuser/raygan-zalando-datasetsgen](https://huggingface.co/RAYAuser/raygan-zalando-datasetsgen)",
|
| 44 |
"sidebar_header": "Options de Génération",
|
|
|
|
| 57 |
"preview_caption": "Aperçu {idx}",
|
| 58 |
"download_button": "Télécharger le fichier ZIP",
|
| 59 |
"generation_success": "Génération terminée et images prêtes pour le téléchargement !",
|
| 60 |
+
"model_not_found_error": "Erreur : Le fichier du modèle n'a pas pu être trouvé localement. Assurez-vous que 'Raygan-zalando_datasetsgen.pth' se trouve dans le même répertoire que ce script.",
|
| 61 |
"instructions_header": "Instructions :",
|
| 62 |
"instructions_1": "1. Choisissez votre mode de génération.",
|
| 63 |
"instructions_2": "2. Entrez le nombre d'images que vous souhaitez créer.",
|
|
|
|
| 96 |
NGF = 64
|
| 97 |
NUM_CLASSES = 10
|
| 98 |
IMAGE_SIZE = 32
|
| 99 |
+
MODEL_FILE = "Raygan-zalando_datasetsgen.pth"
|
| 100 |
|
| 101 |
class_names = [
|
| 102 |
"T-shirt/top", "Trouser", "Pullover", "Dress", "Coat",
|