-
Notifications
You must be signed in to change notification settings - Fork 2.7k
fix clipseg loading problems #1177
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
Conversation
- The directory "models" in the main InvokeAI directory was conflicting with loading "models.clipseg". To fix this issue, I have renamed the models.clipseg to clipseg_models.clipseg, and applied this change to the 'models-rename' branch of invoke-ai's fork of clipseg.
- The directory "models" in the main InvokeAI directory was conflicting with loading "models.clipseg". To fix this issue, I have renamed the models.clipseg to clipseg_models.clipseg, and applied this change to the 'models-rename' branch of invoke-ai's fork of clipseg.
|
This ought to fix #1150 |
|
Followed instructions to re-do the clipseg installation, it works. I did need to run Also, there were issues with the |
- The !mask command takes an image path, a text prompt, and (optionally) a masking threshold. It creates a mask over the region indicated by the prompt, and outputs several files that show which regions will be masked by the chosen prompt and threshold. - The mask images should not be passed directly to img2img because they are designed for visualization only. Instead, use the --text_mask option to pass the selected prompt and threshold. - See docs/features/INPAINTING.md for details.
psychedelicious
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Tested out the
!maskcommand - works great. The threshold does what it should as well. - Feature also works as expected when used with img2img
- I deleted my
src/clipseg/weightsdir and re-ranpreload_models.py, it re-loaded the models successfully
Awesome feature!
|
I'm going to take this as a "approve" and force merge. |
The directory "models" in the main InvokeAI directory was conflicting with loading "models.clipseg". To fix this issue, I have renamed the models.clipseg to clipseg_models.clipseg, and applied this change to the 'models-rename' branch of invoke-ai's fork of clipseg.
After pulling this PR, please delete
src/clipsegand rerunconda env updateUPDATE: I have also folded in the !mask command to visualize the regions found by
clipseg. See docs/features/INPAINTING.md for the details.