Malaji71 commited on
Commit
3d6f51a
·
verified ·
1 Parent(s): e7a7959

Update models.py

Browse files
Files changed (1) hide show
  1. models.py +6 -5
models.py CHANGED
@@ -150,17 +150,18 @@ class BagelAPIAnalyzer(BaseImageAnalyzer):
150
  if prompt is None:
151
  prompt = """You are analyzing a photograph for FLUX image generation. Provide a detailed analysis in two sections:
152
 
153
- 1. DESCRIPTION: Start directly with the subject (e.g., "A color photograph showing..." or "A black and white photograph depicting..."). First, determine if this is a photograph, illustration, or artwork. Then describe the visual elements, composition, lighting, colors (be specific about the color palette - warm tones, cool tones, monochrome, etc.), artistic style, mood, and atmosphere. Write as a flowing paragraph without numbered lists.
154
 
155
- 2. CAMERA_SETUP: Based on the photographic characteristics and scene type you observe, recommend the specific camera system and lens that would realistically capture this type of scene:
156
  - For street/documentary photography: suggest cameras like Canon EOS R6, Sony A7 IV, Leica Q2 with 35mm or 24-70mm lenses
157
  - For portraits: suggest cameras like Canon EOS R5, Sony A7R V with 85mm or 135mm lenses
158
- - For landscapes: suggest cameras like Phase One XT, Fujifilm GFX with wide-angle lenses
159
  - For sports/action: suggest cameras like Canon EOS-1D X, Sony A9 III with telephoto lenses
160
  - For macro: suggest specialized macro lenses
161
- Be specific about focal length, aperture, and shooting style based on what you actually see in the image.
 
162
 
163
- Analyze carefully and be accurate about colors and image type."""
164
 
165
  # Save image to temporary file
166
  temp_path = self._save_temp_image(image)
 
150
  if prompt is None:
151
  prompt = """You are analyzing a photograph for FLUX image generation. Provide a detailed analysis in two sections:
152
 
153
+ 1. DESCRIPTION: Start directly with the subject (e.g., "A color photograph showing..." or "A black and white photograph depicting..."). First, determine if this is a photograph, illustration, or artwork. Then describe the visual elements, composition, lighting, colors (be specific about the color palette - warm tones, cool tones, monochrome, etc.), artistic style, mood, and atmosphere. Also mention the image format/aspect ratio (square, portrait, landscape, widescreen, etc.) and how the composition uses this format. Write as a flowing paragraph without numbered lists.
154
 
155
+ 2. CAMERA_SETUP: Based on the photographic characteristics, scene type, and aspect ratio you observe, recommend the specific camera system and lens that would realistically capture this type of scene:
156
  - For street/documentary photography: suggest cameras like Canon EOS R6, Sony A7 IV, Leica Q2 with 35mm or 24-70mm lenses
157
  - For portraits: suggest cameras like Canon EOS R5, Sony A7R V with 85mm or 135mm lenses
158
+ - For landscapes/widescreen: suggest cameras like Phase One XT, Fujifilm GFX with wide-angle lenses (16-35mm, 24-70mm)
159
  - For sports/action: suggest cameras like Canon EOS-1D X, Sony A9 III with telephoto lenses
160
  - For macro: suggest specialized macro lenses
161
+ - For cinematic/widescreen formats: suggest cinema cameras or full-frame with appropriate aspect ratios
162
+ Be specific about focal length, aperture, and shooting style based on what you actually see in the image dimensions and content.
163
 
164
+ Analyze carefully and be accurate about colors, image type, and proportions."""
165
 
166
  # Save image to temporary file
167
  temp_path = self._save_temp_image(image)