You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By using FaceAnalysis, I can get a image with Value & DIST on it, and also there is a string "Distance". Now I try to convert the string to a float type data that I can use a compare node to compare it with another float which I defined as a passing grade(e.g. 0.25), then if the float converted from "Distance" is large than the passing grade, that trigger the next same ksampler to excute or add a new queue.
The text was updated successfully, but these errors were encountered:
not sure I completely understand but that would require an IF/trigger node I guess
the output [distance] is type of list, how can i convert it to string or float?
you can use a SimpleMath node to convert it to Float. I believe a[0] should return a float but you can also do something like sum(a)/len(a) to get an average
By using FaceAnalysis, I can get a image with Value & DIST on it, and also there is a string "Distance". Now I try to convert the string to a float type data that I can use a compare node to compare it with another float which I defined as a passing grade(e.g. 0.25), then if the float converted from "Distance" is large than the passing grade, that trigger the next same ksampler to excute or add a new queue.
The text was updated successfully, but these errors were encountered: