-
Notifications
You must be signed in to change notification settings - Fork 15
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
Segmentation running slow all of a sudden #15
Comments
Didn't notice the problem you mentioned, if it took that long, the model should have been cleared from the cache, please check if you are using other very memory intensive models |
It still persists here but only on the Rmbg and Rmbg Advance nodes. On the
Getmask node with the Portrait model it is still the fastest segmentation
of all the ones I tested with 0.5sec max.
Am Mi., 8. Jan. 2025 um 14:07 Uhr schrieb HJH_Chenhe <
***@***.***>:
… Recently, the segmentation runs very slow. Before christmas the same image
used to take under 1sec on my 4090, now at least 2-3sec and sometimes even
over 15sec (it seems that is goes to cpu mode even though the vram is not
full).
Didn't notice the problem you mentioned, if it took that long, the model
should have been cleared from the cache, please check if you are using
other very memory intensive models
—
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AR5YUKWBK7OJU7PJ4AFDR3T2JUPKZAVCNFSM6AAAAABUZHTN4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZXGYZTCNBTGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
这三种处理是等价的,与之前的差别是改成了fast-foreground-estimation来合成图片,你可以使用其它节点来混合图片和遮罩代替 |
Thanks. Maybe that's the reason it's running so slow then...? Can you recommend a solution that yields similar results like yours? I use "ImageRemoveAlpha" from "LayerStyles"-custom nodes but it gives this Halo around the Edge (right side of the image) compared to what I get out of using your "RmbgByBiRefNet"-node directly (left side). Thank you. |
@dapa5900 I code a new node to reproduce the original version effect, you can add the node to file birefnetNode.py and test. I am not sure it works for you. If it works, I will merge it.
|
Thank you. It works but on a black background it gives the same result with the halo like the above-mentioned approach (although it's faster on my side, which is good :-)) Please find attached a workflow that compares these three approaches for an example input image |
It looks like there is no difference with LayerStyle, I guess this is what fast-foreground-estimation solves. |
Alright, thanks for your efforts! |
Recently, the segmentation runs very slow. Before christmas the same image used to take under 1sec on my 4090, now at least 2-3sec and sometimes even over 15sec (it seems that is goes to cpu mode even though the vram is not full).
The text was updated successfully, but these errors were encountered: