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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"presets": {
|
| 3 |
+
"low": {
|
| 4 |
+
"name": "Low Quality",
|
| 5 |
+
"description": "Fast processing, suitable for previews",
|
| 6 |
+
"settings": {
|
| 7 |
+
"resolution": 512,
|
| 8 |
+
"model": "rembg",
|
| 9 |
+
"batch_size": 8,
|
| 10 |
+
"edge_refinement": 0,
|
| 11 |
+
"matting_enabled": false,
|
| 12 |
+
"denoise": false,
|
| 13 |
+
"compression_quality": 70,
|
| 14 |
+
"processing_priority": "speed",
|
| 15 |
+
"gpu_enabled": false,
|
| 16 |
+
"estimated_time_seconds": 0.5
|
| 17 |
+
},
|
| 18 |
+
"suitable_for": ["previews", "thumbnails", "quick_edits"],
|
| 19 |
+
"max_file_size_mb": 5
|
| 20 |
+
},
|
| 21 |
+
"medium": {
|
| 22 |
+
"name": "Medium Quality",
|
| 23 |
+
"description": "Balanced quality and speed for web use",
|
| 24 |
+
"settings": {
|
| 25 |
+
"resolution": 1024,
|
| 26 |
+
"model": "rembg",
|
| 27 |
+
"batch_size": 4,
|
| 28 |
+
"edge_refinement": 25,
|
| 29 |
+
"matting_enabled": false,
|
| 30 |
+
"denoise": true,
|
| 31 |
+
"compression_quality": 85,
|
| 32 |
+
"processing_priority": "balanced",
|
| 33 |
+
"gpu_enabled": true,
|
| 34 |
+
"estimated_time_seconds": 1.5
|
| 35 |
+
},
|
| 36 |
+
"suitable_for": ["web", "social_media", "presentations"],
|
| 37 |
+
"max_file_size_mb": 20
|
| 38 |
+
},
|
| 39 |
+
"high": {
|
| 40 |
+
"name": "High Quality",
|
| 41 |
+
"description": "Professional quality for print and commercial use",
|
| 42 |
+
"settings": {
|
| 43 |
+
"resolution": 2048,
|
| 44 |
+
"model": "u2net",
|
| 45 |
+
"batch_size": 2,
|
| 46 |
+
"edge_refinement": 50,
|
| 47 |
+
"matting_enabled": true,
|
| 48 |
+
"denoise": true,
|
| 49 |
+
"compression_quality": 95,
|
| 50 |
+
"processing_priority": "quality",
|
| 51 |
+
"gpu_enabled": true,
|
| 52 |
+
"estimated_time_seconds": 3.0
|
| 53 |
+
},
|
| 54 |
+
"suitable_for": ["print", "commercial", "professional"],
|
| 55 |
+
"max_file_size_mb": 50
|
| 56 |
+
},
|
| 57 |
+
"ultra": {
|
| 58 |
+
"name": "Ultra Quality",
|
| 59 |
+
"description": "Maximum quality with advanced processing",
|
| 60 |
+
"settings": {
|
| 61 |
+
"resolution": 4096,
|
| 62 |
+
"model": "sam2",
|
| 63 |
+
"batch_size": 1,
|
| 64 |
+
"edge_refinement": 100,
|
| 65 |
+
"matting_enabled": true,
|
| 66 |
+
"denoise": true,
|
| 67 |
+
"compression_quality": 100,
|
| 68 |
+
"processing_priority": "quality",
|
| 69 |
+
"gpu_enabled": true,
|
| 70 |
+
"multi_pass": true,
|
| 71 |
+
"preserve_details": true,
|
| 72 |
+
"hair_refinement": true,
|
| 73 |
+
"estimated_time_seconds": 10.0
|
| 74 |
+
},
|
| 75 |
+
"suitable_for": ["professional_photography", "high_end_production", "archival"],
|
| 76 |
+
"max_file_size_mb": 100
|
| 77 |
+
},
|
| 78 |
+
"video_low": {
|
| 79 |
+
"name": "Video Low Quality",
|
| 80 |
+
"description": "Fast video processing for drafts",
|
| 81 |
+
"settings": {
|
| 82 |
+
"resolution": 720,
|
| 83 |
+
"model": "rembg",
|
| 84 |
+
"fps": 15,
|
| 85 |
+
"keyframe_interval": 30,
|
| 86 |
+
"temporal_consistency": false,
|
| 87 |
+
"compression": "h264",
|
| 88 |
+
"bitrate": "2M",
|
| 89 |
+
"gpu_enabled": true,
|
| 90 |
+
"estimated_fps": 10
|
| 91 |
+
},
|
| 92 |
+
"suitable_for": ["drafts", "previews", "social_media_stories"],
|
| 93 |
+
"max_file_size_mb": 100
|
| 94 |
+
},
|
| 95 |
+
"video_high": {
|
| 96 |
+
"name": "Video High Quality",
|
| 97 |
+
"description": "Professional video processing",
|
| 98 |
+
"settings": {
|
| 99 |
+
"resolution": 1080,
|
| 100 |
+
"model": "u2net",
|
| 101 |
+
"fps": 30,
|
| 102 |
+
"keyframe_interval": 10,
|
| 103 |
+
"temporal_consistency": true,
|
| 104 |
+
"compression": "h265",
|
| 105 |
+
"bitrate": "10M",
|
| 106 |
+
"gpu_enabled": true,
|
| 107 |
+
"multi_gpu": true,
|
| 108 |
+
"estimated_fps": 2
|
| 109 |
+
},
|
| 110 |
+
"suitable_for": ["production", "broadcast", "commercial"],
|
| 111 |
+
"max_file_size_mb": 500
|
| 112 |
+
},
|
| 113 |
+
"batch_optimization": {
|
| 114 |
+
"name": "Batch Processing",
|
| 115 |
+
"description": "Optimized for processing multiple files",
|
| 116 |
+
"settings": {
|
| 117 |
+
"resolution": 1024,
|
| 118 |
+
"model": "rembg",
|
| 119 |
+
"batch_size": 16,
|
| 120 |
+
"edge_refinement": 20,
|
| 121 |
+
"matting_enabled": false,
|
| 122 |
+
"parallel_processing": true,
|
| 123 |
+
"memory_optimization": true,
|
| 124 |
+
"gpu_enabled": true,
|
| 125 |
+
"queue_priority": "normal",
|
| 126 |
+
"estimated_images_per_minute": 40
|
| 127 |
+
},
|
| 128 |
+
"suitable_for": ["bulk_processing", "e_commerce", "catalogs"],
|
| 129 |
+
"max_files": 1000
|
| 130 |
+
}
|
| 131 |
+
},
|
| 132 |
+
"model_performance": {
|
| 133 |
+
"rembg": {
|
| 134 |
+
"speed": "fast",
|
| 135 |
+
"quality": "good",
|
| 136 |
+
"memory_usage": "low",
|
| 137 |
+
"gpu_required": false,
|
| 138 |
+
"strengths": ["general_purpose", "speed", "consistency"],
|
| 139 |
+
"weaknesses": ["fine_details", "complex_edges"]
|
| 140 |
+
},
|
| 141 |
+
"u2net": {
|
| 142 |
+
"speed": "medium",
|
| 143 |
+
"quality": "excellent",
|
| 144 |
+
"memory_usage": "medium",
|
| 145 |
+
"gpu_required": true,
|
| 146 |
+
"strengths": ["edge_detection", "hair", "transparency"],
|
| 147 |
+
"weaknesses": ["processing_time"]
|
| 148 |
+
},
|
| 149 |
+
"sam2": {
|
| 150 |
+
"speed": "slow",
|
| 151 |
+
"quality": "superior",
|
| 152 |
+
"memory_usage": "high",
|
| 153 |
+
"gpu_required": true,
|
| 154 |
+
"strengths": ["accuracy", "complex_objects", "professional"],
|
| 155 |
+
"weaknesses": ["speed", "resource_intensive"]
|
| 156 |
+
},
|
| 157 |
+
"deeplab": {
|
| 158 |
+
"speed": "medium",
|
| 159 |
+
"quality": "very_good",
|
| 160 |
+
"memory_usage": "medium",
|
| 161 |
+
"gpu_required": true,
|
| 162 |
+
"strengths": ["semantic_segmentation", "multiple_objects"],
|
| 163 |
+
"weaknesses": ["single_object_focus"]
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"auto_selection_rules": {
|
| 167 |
+
"by_file_size": [
|
| 168 |
+
{"max_mb": 1, "preset": "low"},
|
| 169 |
+
{"max_mb": 5, "preset": "medium"},
|
| 170 |
+
{"max_mb": 20, "preset": "high"},
|
| 171 |
+
{"max_mb": 100, "preset": "ultra"}
|
| 172 |
+
],
|
| 173 |
+
"by_dimension": [
|
| 174 |
+
{"max_pixels": 262144, "preset": "low"},
|
| 175 |
+
{"max_pixels": 1048576, "preset": "medium"},
|
| 176 |
+
{"max_pixels": 4194304, "preset": "high"},
|
| 177 |
+
{"max_pixels": 16777216, "preset": "ultra"}
|
| 178 |
+
],
|
| 179 |
+
"by_use_case": {
|
| 180 |
+
"thumbnail": "low",
|
| 181 |
+
"web_display": "medium",
|
| 182 |
+
"print": "high",
|
| 183 |
+
"professional": "ultra",
|
| 184 |
+
"social_media": "medium",
|
| 185 |
+
"e_commerce": "high"
|
| 186 |
+
}
|
| 187 |
+
}
|
| 188 |
+
}
|