AhmadMustafa commited on
Commit
efeae0f
·
1 Parent(s): 0fda4ac

update: height of crops

Browse files
Files changed (2) hide show
  1. crop_utils.py +3 -3
  2. prompts.py +1 -1
crop_utils.py CHANGED
@@ -595,7 +595,7 @@ def create_layouts(image, left_division, right_division):
595
  0,
596
  min(
597
  cutout_9_16_height - segment_height_9_16,
598
- adjusted_9_16_center_y - segment_height_9_16 // 2,
599
  ),
600
  )
601
  )
@@ -735,7 +735,7 @@ def create_layouts(image, left_division, right_division):
735
  0,
736
  min(
737
  cutout_9_16_height - segment2_height_9_16,
738
- adjusted_9_16_center_y - segment2_height_9_16 // 2,
739
  ),
740
  )
741
  )
@@ -826,7 +826,7 @@ def create_layouts(image, left_division, right_division):
826
  0,
827
  min(
828
  cutout_9_16_height - segment_height_9_16_equal,
829
- adjusted_9_16_center_y - segment_height_9_16_equal // 2,
830
  ),
831
  )
832
  )
 
595
  0,
596
  min(
597
  cutout_9_16_height - segment_height_9_16,
598
+ person_top,
599
  ),
600
  )
601
  )
 
735
  0,
736
  min(
737
  cutout_9_16_height - segment2_height_9_16,
738
+ person_top),
739
  ),
740
  )
741
  )
 
826
  0,
827
  min(
828
  cutout_9_16_height - segment_height_9_16_equal,
829
+ max(0, person_top - person_height * 0.05),
830
  ),
831
  )
832
  )
prompts.py CHANGED
@@ -34,7 +34,7 @@ You need to make sure that any words that are repeated, you need to pick the las
34
 
35
  Return format:
36
 
37
- [Question Title]
38
  Total takes: [X] (Include ONLY if content appears more than once)
39
  - [Take 1. <div id='topic' style="display: inline"> 15s at 12:30 </div>]({link_start}://{{origin}}/collab/{{cid}}/{{rsid}}?st={{750}}&et={{765}}&uid={{uid}})
40
  - [Take 2. <div id='topic' style="display: inline"> 30s at 14:45 </div>]({link_start}://{{origin}}/collab/{{cid}}/{{rsid}}?st={{885}}&et={{915}}&uid={{uid}})
 
34
 
35
  Return format:
36
 
37
+ **Question Title**
38
  Total takes: [X] (Include ONLY if content appears more than once)
39
  - [Take 1. <div id='topic' style="display: inline"> 15s at 12:30 </div>]({link_start}://{{origin}}/collab/{{cid}}/{{rsid}}?st={{750}}&et={{765}}&uid={{uid}})
40
  - [Take 2. <div id='topic' style="display: inline"> 30s at 14:45 </div>]({link_start}://{{origin}}/collab/{{cid}}/{{rsid}}?st={{885}}&et={{915}}&uid={{uid}})