← back to Pattern Vault

scripts/__pycache__/_regen_v3.cpython-314.pyc

58 lines

+
ӶFj�����Rt^RIt^RIt^RIt^RIt^RIt^RItRt]R2t	]P!]	RR7Rt]!]PPR44;_uu_4t]P !R]P#44t]'d]P'^4tRRR4]'gQR4hR	R
RRR
RRRR/RR
RRRRRRR//tRtRtRtRt]!R]24R,R,t]!R]R]R,2RR7.tRtRURV.t]P=4EF"wtt ]EFwt!t"]R ]!2t#R!]R"R
] R
,R#] R,R$] R,R%] R,R&^R'R(R)]"R*R+//t$R,t%]&!^4Ft']!R-]$4t(Rt%M	]%'g]PaR5]#R6R7/4K|]&!^<4FCt1](P/R64RW9dM,]P^!^4]!](R9,R:,4t(KE	](P/R64t2](P/R;4;'g/P/R<^4;'g^t3]]3,
t]2R88Xd�](R=,t4]5!]4]64'd
]4^,M]4t7]	R>]#R?2t8]PrPu]7]84]PPw]84t<]!R0]#R@]3RA
RB]8RC]<R,RD2	RR7]PaR5]#RE]RF]8R6RGR<]3R
] R
,R)]"/4M9]!R0]#RH]2R4](P/R742RR7]PaR5]#RE]R6]2/4]P^!RI4EK	EK%	RJt=]]=,t>]!RK]RA
RL]>RM
RN]=RO2RR7]P~!RP]RQ]RR]@!]>^4/]!]	RS2R4^RT7R# +'giEL�;i ]PRPTd�t+]+P#4PY4R.,t-]+P\R/8XdG]!R0]#R1^]'^,,R22RR7]P^!^]'^,,4Rt+A+EK�]!R0]#R3]+P\R4]-2RR7Rt+A+EK�Rt+A+ii;i)Xa;Targeted _v3 regen for exactly two off-lane briefs (deco-01, texture-01).
Reuses gen_briefs.py machinery (same Replicate SDXL model, poll loop, cost accounting)
but with NEW tight per-brief prompts + negatives, fresh seeds, _v3 suffix.
NEVER overwrites v1/v2. Curator-mode, is_published untouched (no publish here).Nz*/Users/stevestudio2/Projects/pattern-vaultz/assets/generatedT)�exist_okz~/Projects/secrets-manager/.envz$REPLICATE_API_TOKEN=([A-Za-z0-9_-]+)zno replicate tokenzBRIEF-2026-deco-01�prompta�Art-Deco geometric wallpaper, repeating fan and sunburst arcs, stepped chevrons and concentric semicircles, crisp symmetrical linework in metallic gold on a CHARTREUSE (yellow-green) ground, 1920s Gatsby geometric, flat vector, seamless tile, NO plants, NO leaves, NO florals, NO figures. seamless repeating wallpaper pattern, tileable, flat lay, even lighting, high-end wallcovering.�negativez�palm, fronds, leaves, botanical, flowers, birds, animals, photorealistic, text, watermark, signature, logo, blurry, low quality, jpeg artifacts, seams, mismatched edges, frame, border, vignette�wi�hzBRIEF-2026-texture-01aPhotoreal grasscloth wallcovering texture, coarse woven natural fiber, pronounced horizontal slubs and irregular reed strands, visible weave, warm greige, seamless tile, high detail. seamless repeating wallpaper pattern, tileable, flat lay, even lighting, high-end wallcovering.z�smooth, flat, blurry, pattern, motif, floral, text, watermark, signature, logo, low quality, jpeg artifacts, seams, mismatched edges, frame, border, vignettezBMozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36c�n�RR\2RRR\/p\PP	V\
P!V4P4VRR7p\PPV^xR7;_uu_4p\
P!V4uuRRR4# +'giR#;i)	�
Authorization�Bearer zContent-Typezapplication/json�
User-Agent�POST)�data�headers�method��timeoutN)
�tok�UA�urllib�request�Request�json�dumps�encode�urlopen�load)�url�payload�hdr�req�rs&&   �scripts/_regen_v3.py�postr!,s����g�c�U�O�^�=O�Q]�_a�
b�C�
�.�.�
 �
 ��4�:�:�g�+>�+E�+E�+G�QT�]c�
 �
d�C�	���	�	��S�	�	1�	1�Q��y�y��|�
2�	1�	1�	1�s�B#�#B4	c��\PPVRR\2R\/R7p\PPV^<R7;_uu_4p\P!V4uuRRR4# +'giR#;i)rr	r
)r
rN)rrrrrrrr)rrrs&  r �getr#2sb��
�.�.�
 �
 ���'�#���Q]�_a�.b�
 �
c�C�	���	�	��R�	�	0�	0�A��y�y��|�
1�	0�	0�	0�s�A;�;B	zstability-ai/sdxlz$https://api.replicate.com/v1/models/�latest_version�idzusing �@:N�N)�flushg�_�version�input�negative_prompt�width�height�num_inference_steps�guidance_scaleg@�seed�refine�
no_refinerFz(https://api.replicate.com/v1/predictions:N�Ni��[z] 429 throttled, backoff �sz] HTTP z: �tag�status�error�	succeeded�urlsr#�metrics�predict_time�output�/z.pngz] OK z.1fzs -> z (zKB)�brief�path�okz] g�?g�����G?z
=== TOTAL predict_time z
s  est cost $z.4fz (rate $z/s A40) ===�results�total_predict_secs�est_cost_usdz/_regen_v3_manifest.json)�indent)�v3ai/)�v3bi�)r:�failed�canceled)A�__doc__�os�rer�time�urllib.requestr�urllib.error�ROOT�OUT�makedirsr�openrA�
expanduser�f�search�read�m�group�JOBSrr!r#�MODEL�VERSION�printrC�
total_secs�VARIANTS�items�bid�spec�vlabelr1r7rrB�range�attempt�predr9�	HTTPError�e�decode�body�code�sleep�appendr)�st�secs�out�
isinstance�list�imgurl�destr�urlretrieve�getsize�sz�RATE�cost�dump�round��r �<module>rs���S�8�7�7�3��	
��� �����C�$��
��	�"�'�'�
�
�>�
?�@�@�A�
�	�	�9�1�6�6�8�D�A������
�#�A�� � � �s���u�
	�A�	�T�3��
���u�	�A�	�T�3��	���0J����
	��

�4�U�G�<�
=�>N�
O�PT�
U����u�g�Q�w�s�|�n�%�T�2�
��
�
�
�,�'������I�C�� ������Q�v�h����g�w��d�8�n�&7��j�9I��T�#�Y��$�s�)�5J�B��c�6�4��<�1
���
���Q�x�G�
K��F��P��W[�RT�]b� ���N�N�E�3��'�:�;�X��r��A��x�x��!�%H�H�%��J�J�q�M�#�d�6�l�5�&9�":�4���X�X�h�
������#�)�)�r�.�.�~�q�A�F�F�Q���d��
�
����x�.�C�)�#�t�4�4�S��V�#�F��U�!�C�5��%�D��N�N�&�&�v�t�4�������&�B��A�c�U�%��S�z��t�f�B�r�4�x�j��D�D�Q��N�N�E�3���f�d�H�d�*�D�(�D��N�F�TX�Z�
[�
�A�c�U�"�R�D��4�8�8�G�#4�"5�6�d�C��N�N�E�3���h��C�D��
�
�3��K!��P���D����!�*�S�!1��t�C�j��QU�PV�Va�b�jn�o��	�	�9�g�3�Z��QV�W[�]^�Q_�
`�
�#��.�/��
5�a�A�A�@�@��@�<�<�)�)�
K��v�v�x���(��.���6�6�S�=��A�c�U�";�A�w�q�y�M�?�!�L�TX�Y��J�J�q�'�!�)�}�-�x���#��g�a�f�f�X�R��v�6�d�C�U��
K�s+�!;N�2N%�N"	�%Q&	�A5Q!	�<Q!	�!Q&