o Ô>õgŽã@s.ddlmZddlZGdd„dƒZdeiZdS)é)ÚcannyNc@s,eZdZedd„ƒZdZdZdZdd„ZdS) ÚCannyc Cs,ddddddddœfddddddœfd œiS) NÚrequired©ÚIMAGEÚFLOATgš™™™™™Ù?g{®Gáz„?g®Gáz®ï?)ÚdefaultÚminÚmaxÚstepgš™™™™™é?)ÚimageÚ low_thresholdÚhigh_threshold©)ÚsrrúB/home/comdoleger1/zen-flux-style-shape/comfy_extras/nodes_canny.pyÚ INPUT_TYPESsþzCanny.INPUT_TYPESrÚ detect_edgezimage/preprocessorscCsNt| tj ¡¡ dd¡||ƒ}|d tj ¡¡ dddd¡ dd¡}|fS)Néÿÿÿÿéé)rÚtoÚcomfyÚmodel_managementÚget_torch_deviceÚmovedimÚintermediate_deviceÚrepeat)Úselfr r rÚoutputZimg_outrrrrs (zCanny.detect_edgeN) Ú__name__Ú __module__Ú __qualname__Ú classmethodrÚ RETURN_TYPESÚFUNCTIONÚCATEGORYrrrrrrs  r)Zkornia.filtersrZcomfy.model_managementrrÚNODE_CLASS_MAPPINGSrrrrÚs ÿ