Replies: 2 comments 4 replies
-
Yeah it's just outputting a tuple with original size, and coordinates of the crop. So something like
You can manipulate this data how you want. Though, it may be better to just upscale your image to desired scale, then detect and crop face, diffuse, and paste back, avoiding the need to do all that, as the reason we use crop data is to paste back any sized result at correct size and location. |
Beta Was this translation helpful? Give feedback.
-
Here I am again! So, I've created two nodes: MoyeCropDataExpose, which exposes the components width, height, left, top, right, and bottom of 'CROP_DATA'. I wanted to test my nodes by inserting them between the 'CROP_DATA' output of 'Image Crop Face' and the 'crop_data' input of 'Image Paste Face', but it raises an error in the console during the queue execution :
I checked by displaying in the console what I receive in my MoyeCropDataExpose node: ((396, 396), (1015, 432, 1411, 828)), and what I return in my MoyeCropDataRecompose node: ((396, 396), (1015, 432, 1411, 828)). It seems exactly the same, right? What mistake could I have made? The code for my nodes:
Bonus question: Is it possible to display content in a node outside of an input or output? For example, displaying the width, height, left, top, right, and bottom information in the node during execution. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
In the Workflow I'm working on, I would like to manipulate the 'CROP_DATA' output from an 'Image Crop Face' node. More specifically, I would like to multiply them by two, but I can't find any node that allows me to do that.
Through 'Image Crop Face', I detect a character's head in an image generated by an SDXL checkpoint. The image of the head outputted by the 'Image Crop Face' node is approximately 400 x 400 pixels. I convert this image into latent and use it to generate a new head using an SD 1.5 checkpoint and a compatible LoRA.
I noticed that my graphics card supports generating a head by doubling the resolution of the latent using the 'HighRes-Fix Script' node, and the details were even better. 🤪
I would like to reintegrate this head at 800 x 800 pixels onto my base image (which also has its resolution doubled via another technique) by modifying the 'CROP_DATA' to account for the resolution doubling.
Is there an integrated way to do this?
I see in the file 'WAS_Node_Suite.py' (starting from line 3055) that the 'Image Crop Face' node returns the following:
I imagine it's possible for me to create a Custom Node that allows me to retrieve the size and coordinates?
Thank you for your insights! 👍
Beta Was this translation helpful? Give feedback.
All reactions