-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_sample.py
More file actions
68 lines (61 loc) · 2.14 KB
/
config_sample.py
File metadata and controls
68 lines (61 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Virtual Try-On App Configuration
# Copy this file to config.py and modify as needed
# UI Configuration
UI_CONFIG = {
"theme": {
"primary_color": "#667eea",
"secondary_color": "#764ba2",
"background_gradient": "linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(255, 107, 107, 0.1) 35%, rgba(142, 68, 173, 0.1) 100%)",
"glass_opacity": 0.1,
"blur_intensity": "20px"
},
"animations": {
"hover_transform": "translateY(-5px)",
"transition_duration": "0.3s"
}
}
# Image Processing Configuration
IMAGE_CONFIG = {
"max_file_size_mb": 10,
"min_dimensions": (100, 100),
"max_dimensions": (4000, 4000),
"supported_formats": ["png", "jpg", "jpeg"],
"quality": 95
}
# AI Configuration
AI_CONFIG = {
"model_name": "gemini-1.5-pro",
"timeout_seconds": 60,
"max_retries": 3,
"prompt_template": """
You are an expert fashion AI assistant. Please create a realistic virtual try-on image where the person in the first image is wearing the clothing item from the second image.
Instructions:
1. Carefully analyze the person's body shape, pose, and lighting in the first image
2. Extract the clothing item from the second image
3. Realistically place and fit the clothing on the person, considering:
- Proper sizing and proportions
- Natural draping and fabric behavior
- Matching lighting and shadows
- Preserving the person's pose and body position
- Maintaining realistic fabric textures and colors
4. Ensure the final result looks natural and believable
5. Keep the background and everything else from the original person image unchanged
Generate a high-quality, realistic virtual try-on result.
"""
}
# Security Configuration
SECURITY_CONFIG = {
"rate_limit_per_hour": 100,
"max_concurrent_requests": 5,
"secure_upload": True,
"log_user_actions": True
}
# Feature Flags
FEATURES = {
"enable_batch_processing": False,
"enable_style_transfer": False,
"enable_background_removal": False,
"enable_size_recommendation": False,
"enable_analytics": True,
"enable_feedback": True
}