Spaces:
Runtime error
Runtime error
VikramSingh178
commited on
Commit
β’
581fcec
1
Parent(s):
c226a85
chore: Update Dockerfile and requirements.txt, and add config_settings.py
Browse filesFormer-commit-id: 002a6825814239d28e518dd3d2f207c9dad8f5ae
Former-commit-id: 9a25f9401c97ac0ca7f91db319cd2cbee7ac528c
- Dockerfile +1 -4
- config_settings.py +12 -0
- scripts/config.py +16 -12
Dockerfile
CHANGED
@@ -1,7 +1,4 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
# Use Python 3.10 slim-buster as base image
|
4 |
-
FROM python:3.10-slim-buster
|
5 |
|
6 |
# Set working directory in the container
|
7 |
WORKDIR /app
|
|
|
1 |
+
FROM python:3.10
|
|
|
|
|
|
|
2 |
|
3 |
# Set working directory in the container
|
4 |
WORKDIR /app
|
config_settings.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from pydantic import BaseSettings
|
2 |
+
|
3 |
+
class Settings(BaseSettings):
|
4 |
+
AWS_ACCESS_KEY_ID: str = ''
|
5 |
+
AWS_SECRET_ACCESS_KEY: str = ''
|
6 |
+
AWS_REGION: str = "ap-south-1"
|
7 |
+
AWS_BUCKET_NAME: str="diffusion-model-bucket"
|
8 |
+
|
9 |
+
|
10 |
+
|
11 |
+
Settings()
|
12 |
+
|
scripts/config.py
CHANGED
@@ -1,15 +1,17 @@
|
|
1 |
-
MODEL_NAME="stabilityai/stable-diffusion-xl-base-1.0"
|
2 |
-
ADAPTER_NAME = "VikramSingh178/sdxl-lora-finetune-product-caption"
|
3 |
-
ADAPTER_NAME_2 = "VikramSingh178/Products10k-SDXL-Lora"
|
4 |
-
VAE_NAME= "madebyollin/sdxl-vae-fp16-fix"
|
5 |
-
DATASET_NAME= "hahminlew/kream-product-blip-captions"
|
6 |
-
PROJECT_NAME = "Product Photography"
|
7 |
-
PRODUCTS_10k_DATASET = "VikramSingh178/Products-10k-BLIP-captions"
|
8 |
-
CAPTIONING_MODEL_NAME = "Salesforce/blip-image-captioning-base"
|
9 |
-
SEGMENTATION_MODEL_NAME = "facebook/sam-vit-large"
|
10 |
-
DETECTION_MODEL_NAME = "yolov8l"
|
11 |
-
ENABLE_COMPILE = True
|
12 |
-
INPAINTING_MODEL_NAME = 'kandinsky-community/kandinsky-2-2-decoder-inpaint'
|
|
|
|
|
13 |
|
14 |
|
15 |
|
@@ -68,3 +70,5 @@ class Config:
|
|
68 |
self.noise_offset = 0
|
69 |
self.rank = 4
|
70 |
self.debug_loss = False
|
|
|
|
|
|
1 |
+
MODEL_NAME:str="stabilityai/stable-diffusion-xl-base-1.0"
|
2 |
+
ADAPTER_NAME:str = "VikramSingh178/sdxl-lora-finetune-product-caption"
|
3 |
+
ADAPTER_NAME_2:str = "VikramSingh178/Products10k-SDXL-Lora"
|
4 |
+
VAE_NAME:str= "madebyollin/sdxl-vae-fp16-fix"
|
5 |
+
DATASET_NAME:str = "hahminlew/kream-product-blip-captions"
|
6 |
+
PROJECT_NAME:str = "Product Photography"
|
7 |
+
PRODUCTS_10k_DATASET:str = "VikramSingh178/Products-10k-BLIP-captions"
|
8 |
+
CAPTIONING_MODEL_NAME:str = "Salesforce/blip-image-captioning-base"
|
9 |
+
SEGMENTATION_MODEL_NAME:str = "facebook/sam-vit-large"
|
10 |
+
DETECTION_MODEL_NAME:str = "yolov8l"
|
11 |
+
ENABLE_COMPILE:bool = True
|
12 |
+
INPAINTING_MODEL_NAME:str = 'kandinsky-community/kandinsky-2-2-decoder-inpaint'
|
13 |
+
|
14 |
+
|
15 |
|
16 |
|
17 |
|
|
|
70 |
self.noise_offset = 0
|
71 |
self.rank = 4
|
72 |
self.debug_loss = False
|
73 |
+
|
74 |
+
|