
    wSj	                     p   d Z ddlZddlmZ  ee      j
                  Zej                  j                  d e	e             ddl
ZddlZg dZej                  dz  ZddlmZ  ej&                  e      j)                  d      Zej,                  \  ZZddedz  edz  fedz  deedz  fdedz  edz  efedz  edz  eefgZg Z eee      D ]x  \  ZZej                  d	e d
z  Zej?                  ed   dz   ed   dz   ed   dz
  ed   dz
  f      jA                  e       ejC                  e        e"dejF                         z dZ$djK                  g d      Z& eee      D ]H  \  ZZej                  de d
z  Z' ejP                  de e&e$efgde'        e"de'jF                         J  e"d       y)u  임시 실험 2 — quad_s12.png 4분할 크롭 → 패널별 '사실화만 극대화' i2i.

각 패널을 유일 참조로 붙이고, 프롬프트는 '포토리얼리즘 극대화, 나머지
전부 절대 불변'만 지시. 산출 4장 = quad_refined_<tag>.png.
    N)Path)S12sh11S12sh18S12sh21S14sh5zquad_s12.png)ImageRGB   quad_panel_z.png         zcrop:ub   SOURCE FILM STILL — the exact image to refine: every single element is already final and LOCKED.
)z?Re-render the attached film still as a maximally PHOTOREALISTICu=   live-action photograph — as if the identical frame had beenz8captured on a real cinema camera on a real physical set.zBCHANGE NOTHING except realism: keep the exact same camera framing,zBcomposition, perspective, people, their poses and positions, everyz>object and its state, the room, all marks and stains, lightingz?direction and mood, and time of day PRECISELY as in the source.z:Only replace whatever looks rendered, illustrated, waxy orz@artificial with true photographic detail: natural human skin andz@hair, real fabric and material textures, believable optics (lenszBdepth of field, natural grain), physically accurate light falloff.z@Do NOT beautify, do NOT clean up, do NOT add or remove anything.z)No text, captions or watermarks anywhere.quad_refined_x_quad_refine_z1:1)aspect_ratioout_pathzrefined:DONE))__doc__syspathlibr   __file__parentHEREpathinsertstr
forest_libFs37_rooftop_rebuildWTAGSOUTSRCPILr   openconvertimsizeWIDTHHEIGHTboxespanel_pathsziptagboxpcropsaveappendprintname	REF_LABELjoinPROMPToutimg_nb2     Q/Users/manta/Documents/Projects/TheRoad-I1/scratchpad/forest_exp/x_quad_refine.py<module>r?      s  
  H~ 3t9   2een UZZ_U#v
Q
FaK	(
1*a!	,
Vq[%1*f	-
1*fk5&	1	3 D% HC	+cU$''AGGSVaZQ!SVaZQ!<=BB1Eq	'166	 !5		  
 $$FC
%%M#d+
+CAIIse$f	1~.> 30	*chh	 %
 fr=   