This repository has been archived by the owner on Dec 10, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 207
OpenPose Editor is not working properly #106
Labels
bug
Something isn't working
Comments
like this i change code to let input = gradioApp().querySelector(selector).querySelector("#controlnet").querySelector("input[type='file']");
const input_image = (input) =>{
try {
if(input.previousElementSibling
&& input.previousElementSibling.previousElementSibling
&& input.previousElementSibling.previousElementSibling.querySelector("button[aria-label='Clear']")) {
input.previousElementSibling.previousElementSibling.querySelector("button[aria-label='Clear']").click()
}
} catch (e) {
console.error(e)
}
input.value = "";
input.files = list;
const event = new Event('change', { 'bubbles': true, "composed": true });
input.dispatchEvent(event);
}
if (input == null){
const callback = (observer) => {
input = gradioApp().querySelector(selector).querySelector("#controlnet").querySelector("input[type='file']");
if (input == null) {
console.error('input[type=file] NOT exists')
return
}else{
input_image(input)
observer.disconnect()
}
}
const observer = new MutationObserver(callback);
observer.observe(gradioApp().querySelector(selector).querySelector("#controlnet"), { childList: true });
}else{
input_image(input)
} fix |
@koaqiu Please send me a PR |
done |
Hey thank you guys for fixing this awesome plugin :) it works now! Update did not fix it for me on my linux machine, I had to manually remove + reinstall
Thanks! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
or click on 'Detect from Image' button
Screenshots
Environment
Additional context
python: 3.10.6
• torch: 1.13.1+cu117
• xformers: N/A
• gradio: 3.23.0
• commit: 955df775
• checkpoint: fc2511737a
use
https://github.com/AUTOMATIC1111/stable-diffusion-webui/tree/22bcc7be428c94e9408f589966c2040187245d81
same problem
The text was updated successfully, but these errors were encountered: