+
    „°ñj¼6  ã                   ób  € ^ RI t ^ RIt^ RIHu Ht ^ RIHt ^ RIt	^ RI
t	^ RIt	^ RIt	^ RIHtHtHt Rt^t^t. ROt. ROtRtRtR R lt ! R	 R
]P2                  4      t ! R R]P2                  4      t ! R R]P2                  4      t ! R R]P2                  4      t ! R R]4      tR R ltR# )é    N)Úoverride)ÚComfyExtensionÚIOÚTypesi    i €  i   c          
      ó�   € V ^8„  d   QhR\         P                  R\         P                  R\        R\        R\         P                  /# )é   ÚimageÚmaskÚerode_radiusÚsizeÚreturn)ÚtorchÚTensorÚint)Úformats   "ÚAC:\Ai_Coding\apps\studio\ComfyUI\comfy_extras\nodes_triposplat.pyÚ__annotate__r      s?   € ÷ "ñ "”u—|‘|ð "¬5¯<©<ð "Äsð "ÔRUð "ÔZ_×ZfÑZfñ "ó    c                 ó6  € V R
,          P                  ^ ^4      P                  R^ 4      pVP                  ^ ^4      R,          p\        P                  ! WE.^ 4      R,          pVP                  RR w  rxV\        W‡4      ,          p	\        P                  P                  V\        ^\        W‰,          4      4      \        ^\        Wy,          4      4      RR4      P                  ^ ^4      pVR,          p
V^ 8”  dK   \        P                  ! V
) ^V,          ^,           ^VR7      ) p
\        P                  ! VR,          V
.^4      p\        P                  ! V
R,          ^ 8„  RR7      w  r¼VP                  4       ^ 8X  d   \        R4      h\!        VP                  4       4      \!        VP                  4       4      rí\!        VP                  4       4      \!        VP                  4       4      ppWÞ,           ^,          VV,           ^,          pp\        Wí,
          VV,
          4      ^,          R	,          p\!        VV,
          4      \!        VV,
          4      \!        VV,           4      \!        VV,           4      3w  ppppVP                  RR w  ppVP#                  ^^VV,
          VV,
          34      p\        V^ 4      \        V^ 4      \        VV4      \        VV4      3w  ppppVV8”  d@   VV8”  d9   VRRVV1VV13,          VRRVV,
          VV,
          1VV,
          VV,
          13&   \        P                  P                  VW3RR4      P                  ^ ^4      pVR,          VR,          ,          ^ ,          P                  ^ R4      pVP%                  ^ 4      # ).NÚlanczosÚdisabledºNNN)ÚstrideÚpaddingT)Úas_tuplez@TripoSplatPreprocessImage: mask is empty (no foreground pixels).g333333ó?).ºNé   Néÿÿÿÿéþÿÿÿ)r   :r   é   N)r   r   )r   r   )ÚclampÚmovedimr   ÚcatÚshapeÚminÚcomfyÚutilsÚcommon_upscaleÚmaxÚroundÚFÚ
max_pool2dÚnonzeroÚnumelÚ
ValueErrorr   Ú	new_zerosÚ	unsqueeze) r	   r
   r   r   ÚrgbÚalphaÚrgbaÚhÚwÚsÚaÚysÚxsÚx0Úx1Úy0Úy1ÚcxÚcyÚhalfÚleftÚupperÚrightÚlowerÚHÚWÚcropÚsx0Úsy0Úsx1Úsy1Úouts    &&&&                            r   Ú_preprocessrN      sô  € ð ��.×
Ñ
˜q !Ó
$×
,Ñ
,¨R°Ó
3€CØ�J‰J�q˜!Ó˜TÕ"€EÜ�9Š9�c�\ 1Ó% dÕ+€Dà�:‰:�b�cˆ?�D€AØŒs�1‹yÕ€AÜ�;‰;×%Ñ% d¬C°´5¸½³<Ó,@Ä#ÀaÌÈqÍuËÓBVÐXaÐcmÓn×tÑtÐuvÐxyÓz€DàˆV�€AØ�aÔä�\Š\˜1˜"˜a ,Õ.°Õ2¸1ÀlÔSÐSˆÜ�yŠy˜$˜u�+ qÐ)¨1Ó-ˆä�]Š]˜1˜T�7 Q™;°Ô6�F€BØ	‡x�xƒz�Q„ÜÐ[Ó\Ð\Ü�—‘“‹]œC §¡£›MˆÜ�—‘“‹]œC §¡£›Mˆ€BØ�g˜�]˜R "�W¨�Mˆ€BÜˆr�w˜˜R�Ó  1Õ$ sÕ*€DÜ # B¨¥I£´°B¸µI³ÄÀBÈÅIÃÔPSÐTVÐY]ÕT]ÓP^Ð ^Ñ€Dˆ%�˜à�:‰:�b�cˆ?�D€A€qØ�>‰>˜1˜a ¨¥°¸µÐ=Ó>€DÜ˜T 1›¤s¨5°!£}´c¸%À³mÄSÈÐPQÃ]ÐRÑ€Cˆˆc�3Ø
ˆS„y�S˜3”YØEIÈ!ÈQÐPSÐTWÐPWÐY\Ð]`ÐY`ÐJ`ÕEaˆˆQ��3˜•;˜s U�{Ð*¨C°$­J°s¸TµzÐ,AÐAÑBä�;‰;×%Ñ% d¨D¸	À:ÓN×TÑTÐUVÐXYÓZ€DØ��;˜˜f�Õ% qÕ
)×
1Ñ
1°!°RÓ
8€CØ�=‰=˜ÓÐr   c                   óL   a € ] tR t^>t o ]R 4       t]V 3R lR l4       tRtV tR# )ÚTripoSplatPreprocessImagec                ó~  € \         P                  ! R RRR\         P                  P                  R4      \         P                  P                  R4      \         P
                  P                  R^^ ^RR7      \         P
                  P                  R	R
RR^RR7      .\         P                  P                  RR7      .R7      # )rP   zTripoSplat Preprocess Imageúmodel/conditioning/triposplatzPCrop center each image to a square canvas on a black background and add padding.r	   r
   r   zQErode the alpha matte by this pixel radius before cropping (avoids border bleed).©Údefaultr%   r)   Útooltipr   é   é   i   zZSquare image size. The model is trained at 1024; other sizes run but are off-distribution.©rT   r%   r)   ÚsteprU   ©Údisplay_name©Únode_idr[   ÚcategoryÚdescriptionÚinputsÚoutputs)r   ÚSchemaÚImageÚInputÚMaskÚIntÚOutput©Úclss   &r   Údefine_schemaÚ'TripoSplatPreprocessImage.define_schema?   s¢   € ä�yŠyØ/Ø6Ø4Øjä—‘—‘˜wÓ'Ü—‘—‘˜fÓ%Ü—‘—‘˜^°Q¸AÀ2Ø%xð ó zä—‘—‘˜V¨T°sÀÈ2ð &Bð ó Cðô —X‘X—_‘_°'�_Ó:Ð;ô
ð 	
r   c                ó4   <€ V ^8„  d   QhRS[ P                  /# ©r   r   ©r   Ú
NodeOutput)r   Ú__classdict__s   "€r   r   Ú&TripoSplatPreprocessImage.__annotate__R   s   ø€ ÷ 'ñ '¹¿¹ñ 'r   c                óø  € \        ^\        V4      ^,          ^,          4      pVP                  ^ ,          VP                  ^ ,          8w  d1   \        P                  P                  W!P                  ^ ,          4      p\        VP                  R,          4      \        VP                  R,          4      8w  dQ   \        P                  ! VR,          P                  4       \        VP                  R,          4      RRR7      R,          p\        P                  ! \        VP                  ^ ,          4       Uu. uF  p\        W,          W%,          W44      NK  	  up^ R7      p\        P                  ! V4      # u upi )	é   :é   NN:rt   r   NÚbilinearF)r   ÚmodeÚalign_corners)Údim)r   N)r   r   )r)   r   r$   r&   r'   Úrepeat_to_batch_sizeÚtupler+   ÚinterpolateÚfloatr   r#   ÚrangerN   r   ro   )ri   r	   r
   r   r   ÚiÚprepareds   &&&&&  r   ÚexecuteÚ!TripoSplatPreprocessImage.executeQ   s  € ä�2œ˜D›	 R�¨2Õ-Ó.ˆØ�:‰:�a�=˜EŸK™K¨�NÔ*Ü—;‘;×3Ñ3°D¿+¹+Àa½.ÓIˆDÜ�—‘˜B•Ó ¤E¨%¯+©+°cÕ*:Ó$;Ô;Ü—=’=  g¥×!4Ñ!4Ó!6¼UÀ5Ç;Á;ÈsÕCSÓ=TÐ[eÐuzÔ{ð  }Aõ  BˆDÜ—9’9ÔZ_Ð`e×`kÑ`kÐlmÕ`nÔZoÓpÑZoÐUVœk¨%­(°DµG¸\ÖPÑZoÑpÐvwÔxˆÜ�}Š}˜XÓ&Ð&ùò qs   Ä6"E7© N©	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Úclassmethodrj   r€   Ú__static_attributes__Ú__classdictcell__©rp   s   @r   rP   rP   >   s+   ø‡ € Øñ
ó ð
ð" ÷'ó ö'r   rP   c                   óL   a € ] tR t^\t o ]R 4       t]V 3R lR l4       tRtV tR# )ÚTripoSplatConditioningc                ó²  € \         P                  ! R RRR\         P                  P                  RRR7      \         P                  P                  RRR7      \         P
                  P                  R	4      .\         P                  P                  R
R7      \         P                  P                  RR7      \         P                  P                  RRR7      .R7      # )r�   zTripoSplat ConditioningrR   z¨Encode the image with DINOv3 and the Flux2 VAE into TripoSplat positive/negative conditioning, and create the fixed size noise target (latent + camera) for the KSamplerÚclip_visionzDINOv3 ViT-H/16+ image encoder©rU   Úvaez	Flux2 VAEr	   ÚpositiverZ   ÚnegativeÚlatentz-The fixed size noise target (latent +camera).)r[   rU   r\   )	r   rb   Ú
ClipVisionrd   ÚVaerc   ÚConditioningrg   ÚLatentrh   s   &r   rj   Ú$TripoSplatConditioning.define_schema]   s®   € ä�yŠyØ,Ø2Ø4ðrô —‘×#Ñ# MÐ;[Ð#Ó\Ü—‘—‘˜U¨K�Ó8Ü—‘—‘˜wÓ'ðô —‘×&Ñ&°JÐ&Ó?Ü—‘×&Ñ&°JÐ&Ó?Ü—	‘	× Ñ ¨hÐ@oÐ Ópðô
ð 	
r   c                ó4   <€ V ^8„  d   QhRS[ P                  /# rm   rn   )r   rp   s   "€r   r   Ú#TripoSplatConditioning.__annotate__r   s   ø€ ÷ Gñ G±·±ñ Gr   c                óÎ  € \         P                  P                  VP                  4       VP                  pVP                  R^4      P                  V4      p\        P                  ! \        VR7      P                  ^^^^4      p\        P                  ! \        VR7      P                  ^^^^4      pWV,
          V,          pVP                  VP                  4       R7      ^ ,          p\        P                  ! VP                  4       VP                   RR 4      P                  \         P                  P#                  4       4      p	VP%                  V4      P                  \         P                  P#                  4       4      p
V
P                   ^ ,          pV	RV
./..p\        P&                  ! V	4      R\        P&                  ! V
4      ./..p\         P                  P#                  4       p\        P(                  ! V\*        \,        .VR7      p\        P(                  ! V^\.        .VR7      p\         P0                  P3                  VV34      p\4        P6                  ! WÍRV/4      # )rt   ©Údevice)Úpixel_valuesNÚreference_latentsÚsamplesr   )r&   Úmodel_managementÚload_model_gpuÚpatcherÚload_devicer"   Útor   ÚtensorÚ_DINOV3_MEANÚviewÚ_DINOV3_STDÚmodelr|   r+   Ú
layer_normr$   Úintermediate_deviceÚencodeÚ
zeros_likeÚzerosÚ_Q_TOKEN_LENGTHÚ_LATENT_CHANNELSÚ_CAM_CHANNELSÚnested_tensorÚNestedTensorr   ro   )ri   r�   r‘   r	   rž   ÚimgÚmeanÚstdÚseqÚfeature1ÚrefÚbr’   r“   ÚdevÚ
latent_seqÚcamerar¡   s   &&&&              r   r€   ÚTripoSplatConditioning.executeq   sÚ  € ô 	×Ñ×-Ñ-¨k×.AÑ.AÔBØ×(Ñ(ˆØ�m‰m˜B Ó"×%Ñ% fÓ-ˆÜ�|Š|œL°Ô8×=Ñ=¸aÀÀAÀqÓIˆÜ�lŠlœ;¨vÔ6×;Ñ;¸A¸qÀ!ÀQÓGˆØ�z˜SÕ ˆØ×Ñ¨S¯Y©Y«[ÐÓ9¸!Õ<ˆÜ—<’< §	¡	£¨S¯Y©Y°r°s¨^Ó<×?Ñ?Ä×@VÑ@V×@jÑ@jÓ@lÓmˆð �j‰j˜Ó×"Ñ"¤5×#9Ñ#9×#MÑ#MÓ#OÓPˆØ�I‰I�a�LˆàÐ 3°c°UÐ;Ð<Ð=ˆÜ×%Ò% hÓ/Ð2EÌ×HXÒHXÐY\ÓH]ÐG^Ð1_Ð`Ðaˆô ×$Ñ$×8Ñ8Ó:ˆÜ—[’[ !¤_Ô6FÐ!GÐPSÔTˆ
Ü—’˜a ¤MÐ2¸3Ô?ˆÜ×%Ñ%×2Ñ2°JÀÐ3GÓHˆÜ�}Š}˜X°)¸WÐ1EÓFÐFr   r‚   Nrƒ   r‹   s   @r   r�   r�   \   s-   ø‡ € Øñ
ó ð
ð& ÷Gó öGr   r�   c                   óL   a € ] tR t^Œt o ]R 4       t]V 3R lR l4       tRtV tR# )ÚVAEDecodeTripoSplatc                ó’  € \         P                  ! R RRR\         P                  P                  R4      \         P                  P                  RRR7      \         P
                  P                  RR	\        \        ^ R
R7      \         P
                  P                  R^ ^ RRR7      .\         P                  P                  RR7      .R7      # )rÂ   zTripoSplat Decodeúmodel/latent/triposplatzrDecode the sampled TripoSplat latent into a 3D gaussian splat. Modify the number of gaussians to vary the density.r¡   r‘   úTripoSplat VAE decoderr�   Únum_gaussiansé   zÐNumber of gaussians to produce (rounded to a multiple of 32). 262144 matches the octree's point density; higher oversamples the same points (denser, but no new detail) and costs proportionally more VRAM/time.rX   Úseedl   ÿÿÿÿ zFSeeds the octree point sampler (global RNG) for deterministic decodes.rS   ÚsplatrZ   r\   )
r   rb   r˜   rd   r–   rf   Ú_NUM_GAUSSIANS_MINÚ_NUM_GAUSSIANS_MAXÚSplatrg   rh   s   &r   rj   Ú!VAEDecodeTripoSplat.define_schema�   s²   € ä�yŠyØ)Ø,Ø.ðNô —	‘	—‘ 	Ó*Ü—‘—‘˜UÐ,D�ÓEÜ—‘—‘˜_°fÔBTÔZlÐsuð&lð ó mô —‘—‘˜V¨Q°AÐ;MØ%mð ó oð	ô —X‘X—_‘_°'�_Ó:Ð;ô!
ð 	
r   c                ó4   <€ V ^8„  d   QhRS[ P                  /# rm   rn   )r   rp   s   "€r   r   Ú VAEDecodeTripoSplat.__annotate__£   s   ø€ ÷ Wñ W¹2¿=¹=ñ Wr   c           	     ó  € VR ,          p\        VRR4      '       d   VP                  4       ^ ,          MTpVP                  pVP                  p\	        \
        \        \        \        V4      4      4      p	W˜,          ^ 8w  d   \        W˜,          4      V,          p	\        P                  P                  VP                  4      p
VP                  P                  pVP                   ^,          pV^,          W˜,          ^
,          ,           V,          V
,          p\        P                  P#                  VP$                  .VR7       VP'                  VP(                  VP                  R7      p\*        P,                  ! RR7      P/                  V4      pVP1                  WiVR7       Uu. uF  qÿP3                  4       NK  	  ppR \5        V!   4       w  ppppp\6        P8                  ! \:        P<                  ! VVVVV4      4      # u upi )	r¡   Ú	is_nestedF©Úmemory_required)rž   ÚdtypeÚcpur�   )rÆ   Ú	generatorc              3   óN   "  € T F  p\         P                  ! V4      x € K  	  R # 5i©N)r   Ústack)Ú.0Úts   & r   Ú	<genexpr>Ú.VAEDecodeTripoSplat.execute.<locals>.<genexpr>µ   s   é € Ð6[É{È!´u·{²{À1·~°~Ë{ùs   ‚#%)ÚgetattrÚunbindÚfirst_stage_modelÚgaussians_per_pointr)   rÊ   r%   rË   r   r*   r&   r¢   Ú
dtype_sizeÚ	vae_dtypeÚgsÚmodel_channelsr$   Úload_models_gpur¤   r¦   rž   r   Ú	GeneratorÚmanual_seedÚdecodeÚrender_tensorsÚzipr   ro   r   ÚSPLAT)ri   r¡   r‘   rÆ   rÈ   r7   r”   ÚdecoderÚgppÚnrâ   ÚhiddenÚcond_tokensrÓ   rÖ   ÚgÚpartsÚ	positionsÚscalesÚ	rotationsÚ	opacitiesÚshs   &&&&&                 r   r€   ÚVAEDecodeTripoSplat.execute¢   s†  € à�IÕˆÜ")¨!¨[¸%×"@Ò"@�—‘“˜A–Àaˆà×'Ñ'ˆØ×)Ñ)ˆÜÔ"¤CÔ(:¼CÀÓ<NÓ$OÓPˆØ�7�aŒ<Ü�a•g“ Õ$ˆAä×+Ñ+×6Ñ6°s·}±}ÓEˆ
Ø—‘×*Ñ*ˆØ—l‘l 1•oˆØ&¨�?¨a­h¸"­_Õ<ÀÕFÈÕSˆÜ×Ñ×.Ñ.°·±¨}ÈoÐ.Ô^Ø—‘ #§*¡*°C·M±M�ÓBˆÜ—O’O¨5Ô1×=Ñ=¸dÓCˆ	Ø-4¯^©^¸FÐ_h¨^Ô-iÓjÑ-i¨×!Ñ!Ö#Ñ-iˆÐjÙ6[ÌsÐTYÊ{Ó6[Ñ3ˆ	�6˜9 i°Ü�}Š}œUŸ[š[¨°F¸IÀyÐRTÓUÓVÐVùò ks   Æ%Hr‚   Nrƒ   r‹   s   @r   rÂ   rÂ   Œ   s-   ø‡ € Øñ
ó ð
ð( ÷Wó öWr   rÂ   c                   óL   a € ] tR t^¹t o ]R 4       t]V 3R lR l4       tRtV tR# )ÚTripoSplatSamplingPreviewc                óZ  € \         P                  ! R RRR\         P                  P                  R4      \         P                  P                  RRR7      \         P
                  P                  R^^^R	R
R7      \         P
                  P                  RRRR^ RR7      \         P                  P                  RRR RRRR	R7      \         P                  P                  RRR!RRRR	R7      \         P
                  P                  R^^^RR7      .\         P                  P                  4       .R7      # )"rû   zTripoSplat Sampling PreviewrÄ   zuPatch the TripoSplat model for the standard Ksampler node to show a live decoded gaussian splat preview at each step.r«   r‘   rÅ   r�   Úoctree_levelTz>Octree depth for the preview decode (lower = cheaper/coarser).)rT   r%   r)   ÚadvancedrU   rÆ   i @  rV   rÇ   zMNumber of gaussians to produce for the preview (rounded to a multiple of 32).rX   Úyawg     €V@g     €v@g      ð?zPreview camera yaw in degrees.)rT   r%   r)   rY   rU   rþ   Úpitchg      .@g     @V@z Preview camera pitch in degrees.Ú
point_sizez�Maximum splat radius in pixels. Each gaussian is sized from its scale and capped here; lower = finer/pointier, higher = chunkier.rS   r\   g     €vÀg     @VÀ)r   rb   ÚModelrd   r–   rf   ÚFloatrg   rh   s   &r   rj   Ú'TripoSplatSamplingPreview.define_schemaº   s  € ä�yŠyØ/Ø6Ø.ð?ô —‘—‘˜wÓ'Ü—‘—‘˜UÐ,D�ÓEÜ—‘—‘˜^°Q¸AÀ1ÈtØ%eð ó gä—‘—‘˜_°eÀÈ6ÐXZØ%tð ó vä—‘—‘˜u¨d¸ÀEÐPSÐ]}ð  IM�ó  OÜ—‘—‘˜w°¸%ÀTÐPSÐ]ð  KO�ó  QÜ—‘—‘˜\°1¸!Àð&Rð ó Sðô —X‘X—_‘_Ó&Ð'ô'
ð 	
r   c                ó4   <€ V ^8„  d   QhRS[ P                  /# rm   rn   )r   rp   s   "€r   r   Ú&TripoSplatSamplingPreview.__annotate__Ó   s   ø€ ÷ , ñ , ÑY[×YfÑYfñ , r   c           
     ó.  aaaa€ ^ RI Ho RVRVRVRVRV/oSP                  pVP                  P                  P
                  p	V	^,          WHP                  ,          ^
,          ,           VP                  P                  ,          \        P                  P                  SP                  4      ,          oVVVV3R lp
VP                  4       pVP                  \        P                  P                   P"                  RV
4       \$        P&                  ! V4      # )	r   )Údecode_x0_to_imageÚ	gaussiansÚlevelrÿ   r   r  c                 óÜ   <aa€ \        V4      p^p\        V4      V8”  d	   W,          MVP                  R4      oRRRRRR/oVVV	VVV
3R lp\        V4      V8”  d   WAV&   MWBR&   V ! V/ VB # )	é   ÚcallbackÚokTÚpbarNÚloadedFc                 ób  <€ S
e
   S
! WW#4       SR,          '       g   R #  SR,          '       gb   \         P                  P                  RR7      pVP                  SP                  4       \         P                  P                  VS	R7       RSR&   S! SVS4      pSR,          f#   \         P                  P                  V4      SR&   SR,          P                  V ^,           VRVR34       R #   \         d6   p\        P                  ! R	P                  T4      4       R
SR&    R p?R # R p?ii ; i)Nr  r  T)Úonly_currently_usedrÒ   r  ÚJPEGi   z9TripoSplatSamplingPreview: preview failed, disabling ({})F)r&   r¢   Úloaded_modelsÚappendr¤   ræ   r'   ÚProgressBarÚupdate_absoluteÚ	ExceptionÚloggingÚwarningr   )rY   r;   ÚxÚtotal_stepsr  r¶   ÚeÚcfgr  rÓ   Úorig_cbÚstater‘   s   &&&&   €€€€€€r   r  ÚQTripoSplatSamplingPreview.execute.<locals>.outer_sample_wrapper.<locals>.callbackä   s  ø€ ØÒ&Ù˜D aÔ5Ø˜T—{”{Ùð(Ø  Ÿ?œ?Ü(-×(>Ñ(>×(LÑ(LÐaeÐ(LÓ(f˜Ø%×,Ñ,¨S¯[©[Ô9Ü×.Ñ.×>Ñ>¸}Ð^mÐ>ÔnØ*.˜˜h™Ù,¨S°"°cÓ:�CØ˜V•}Ò,Ü(-¯©×(?Ñ(?ÀÓ(L˜˜f™Ø˜&•M×1Ñ1°$¸µ(¸KÈ&ÐRUÐWZÐI[Ö\øÜ ô (Ü—O’OÐ$_×$fÑ$fÐghÓ$iÔjØ"'�E˜$—Kûð(ús   ¡C. °B<C. Ã.D.Ã9*D)Ä)D.)ÚlistÚlenÚget)ÚexecutorÚargsÚkwargsÚcb_idxr  r  r   r  r  rÓ   r‘   s   &*,  @@€€€€r   Úouter_sample_wrapperÚ?TripoSplatSamplingPreview.execute.<locals>.outer_sample_wrapperÞ   sw   ú€ Ü˜“:ˆDØˆFÜ&)¨$£i°&Ô&8�d–l¸f¿j¹jÈÓ>TˆGØ˜4 ¨¨x¸Ð?ˆE÷(ò (ô& �4‹y˜6Ô!Ø'�V’à%-�zÑ"Ù˜TÐ, VÑ,Ð,r   Útriposplat_sampling_preview)Úcomfy.ldm.triposplat.previewr  rà   r«   Údiffusion_modelÚq_token_lengthrá   rä   rå   r&   r¢   râ   rã   ÚcloneÚadd_wrapper_with_keyÚpatcher_extensionÚ
WrappersMPÚOUTER_SAMPLEr   ro   )ri   r«   r‘   rý   rÆ   rÿ   r   r  Úfsmrñ   r)  Úmr  r  rÓ   s   &&f&&&&&    @@@r   r€   Ú!TripoSplatSamplingPreview.executeÒ   s	  û€ åCØ˜M¨7°LÀ%ÈÈgÐW\Ø˜Zð)ˆð ×#Ñ#ˆØ—k‘k×1Ñ1×@Ñ@ˆØ&¨�?¨m×?VÑ?VÕ.VÐZ\Õ-\Õ\Ð`c×`fÑ`f×`uÑ`uÕuÔx}÷  yOñ  yO÷  yZñ  yZð  [^÷  [hñ  [hó  yiõ  iˆ÷	-ð 	-ð> �K‰K‹MˆØ	×Ñœu×6Ñ6×AÑA×NÑNÐPmð  pDô  	EÜ�}Š}˜QÓÐr   r‚   Nrƒ   r‹   s   @r   rû   rû   ¹   s+   ø‡ € Øñ
ó ð
ð. ÷, ó ö, r   rû   c                   ó<   a € ] tR tRt o ]V 3R lR l4       tRtV tR# )ÚTripoSplatExtensioni  c                óT   <€ V ^8„  d   QhRS[ S[S[P                  ,          ,          /# rm   )r"  Útyper   Ú	ComfyNode)r   rp   s   "€r   r   Ú TripoSplatExtension.__annotate__  s"   ø€ ÷ 
ñ 
¡T©$©r¯|©|Õ*<Õ%=ñ 
r   c              ƒ  ó6   "  € \         \        \        \        .# 5irØ   )rP   r�   rÂ   rû   )Úselfs   &r   Úget_node_listÚ!TripoSplatExtension.get_node_list  s   é € ô &Ü"ÜÜ%ð	
ð 	
ùs   ‚r‚   N)r„   r…   r†   r‡   r   r?  r‰   rŠ   r‹   s   @r   r8  r8    s   ø‡ € Ø÷
ó ö
r   r8  c                ó$   € V ^8„  d   QhR\         /# rm   ©r8  )r   s   "r   r   r     s   € ÷ !ñ !Ô 3ñ !r   c               ƒ   ó   "  € \        4       # 5irØ   rB  r‚   r   r   Úcomfy_entrypointrD    s   é € ÜÓ Ð ùs   ‚)g
×£p=
ß?gÉv¾Ÿ/Ý?g–C‹lçûÙ?)gZd;ßOÍ?gyé&1¬Ì?gÍÌÌÌÌÌÌ?) r  r   Útorch.nn.functionalÚnnÚ
functionalr+   Útyping_extensionsr   Úcomfy.model_managementr&   Úcomfy.nested_tensorÚcomfy.patcher_extensionÚcomfy.utilsÚcomfy_api.latestr   r   r   r±   r²   r³   r¨   rª   rÊ   rË   rN   r;  rP   r�   rÂ   rû   r8  rD  r‚   r   r   Ú<module>rN     s°   ðó ã ß Ð Ý &ã Û Û Û ß 6Ñ 6ð €ØÐ Ø€Ú$€Ú#€ØÐ ØÐ õ"ôJ' §¡ô 'ô<-G˜RŸ\™\ô -Gô`*W˜"Ÿ,™,ô *WôZF  §¡ô F ôR
˜.ô 
÷!r   