Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When deploying code #11

Open
Richard1Bob opened this issue Nov 5, 2024 · 3 comments
Open

When deploying code #11

Richard1Bob opened this issue Nov 5, 2024 · 3 comments

Comments

@Richard1Bob
Copy link

Thank you blogger for your work, you do a great job. I ran into the following problems while running the code:

Traceback (most recent call last):
File "E:\ScribblePrompt\ScribblePrompt-0.1.0\demos\app.py", line 450, in
scribble_img = gr.Image(
File "D:\ProgramData\Anaconda3\lib\site-packages\gradio\component_meta.py", line 167, in wrapper
return fn(self, **kwargs)
TypeError: init() got an unexpected keyword argument 'brush_radius'

@halleewong
Copy link
Owner

Hi, please check you're using the right version of Gradio. The app in demos/app.py requires gradio 3.40.1.

Alternatively, we have a newer gradio app on huggingface here that uses gradio 4.41.0. You can download the code for that app in the files tab of the huggingface page

@Richard1Bob
Copy link
Author

Richard1Bob commented Nov 7, 2024

Hi, please check you're using the right version of Gradio. The app in demos/app.py requires gradio 3.40.1.

Alternatively, we have a newer gradio app on huggingface here that uses gradio 4.41.0. You can download the code for that app in the files tab of the huggingface page
Thanks, after your advice, I have been able to successfully deploy locally!

Now there is another question I would like to consult: when I segment my own blood vessel image, it is easy to over-segment when I use click operation, and the same situation will still occur when I click again after cancellation. How can I solve this problem?
image

@halleewong
Copy link
Owner

It looks like you are only using positive clicks here. Have you tried using negative clicks or scribbles to mark the background?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants