Open zcatharisis opened 8 months ago
Ran into two issues with the hack above:
At first, I didn't run into these issues because I replaced the file while A1111 was already running. Now, I only recommend doing the above while A1111 is running, and only if you run into out of memory errors while using handrefiner.
As per https://huggingface.co/hr16/ControlNet-HandRefiner-pruned/discussions/3, you don't actually need to make an openpose stick figure to get the depthmap. All you need is some reliable way of detecting hands, be it through mediapipe, openpose or boundingbox (yolov8, adetailer's hand model).
Currently, the HandRefiner process uses mediapipe (hrnetv2_w64_imagenet_pretrained.pth), a 500MB file, and inferences using it are long. By changing to Yolov8 hands.pt (taken from Adetailer Extension and is only 20MB), the hand detection processes is comparatively instantaneous, with (hypothetically, needs testing) equal reliability.
Currently, users may change the model from mediapipe to Yolov8 through the following steps:
The only benefit this enhancement provides is a small speed and efficiency boost, not an increase in the reliability of hand detections or depthmap outputs. Understandably, this may be low in priority.