BiRefNet HR (High Resolution) Gradio APP and 1-Click Installers for Windows, RunPod, Massed Compute and a Free Kaggle Account Notebook
🕑 Added 2025-03-31 21:00:00 +0000 UTCPatreon exclusive posts index to find our scripts easily, Patreon scripts updates history to see which updates arrived to which scripts and amazing Patreon special generative scripts list that you can use in any of your task.
Join discord to get help, chat, discuss and also tell me your discord username to get your special rank : SECourses Discord
Please also Star, Watch and Fork our Stable Diffusion & Generative AI GitHub repository and join our Reddit subreddit and follow me on LinkedIn (my real profile)
=======
Latest installer zip file: BiRefNet_HR_v5.zip
GitHub official repo : https://github.com/ZhengPeng7/BiRefNet
We have upgraded our app to work better and now supports BiRefNet HR - High Resolution version and all other versions as well
Moreover newer version has half precision feature so now it works even with lower VRAM
VRAM usage 100% depends on the processed image resolution
Check all the screenshots to see how it works and we have full batch processing feature as well
Video Tutorial : Hopefully coming soon
1 April 2025 Update
Windows installer now supports RTX 5000 series as well as previous versions
Now installs Sage Attention, xFormers and Flash Attention as well
Windows Requirements
Python 3.10, FFmpeg, CUDA 12.4, cuDNN 8.9 and 9.4+, C++ tools and Git
If it doesn't work make sure to below tutorial and install everything exactly as shown in this below tutorial
How To Install and Use:
Windows:
First watch above requirements tutorial and follow every step
Extract zip archive into a drive like c:/BiRefNet_hr_v1
Longer directory path causes issues and don't use space characters in folder names
Double click and install with Windows_Install.bat and that is it
Then run with Windows_Start_App.bat to start BiRefNet HR SECourses APP
And follow above and below attached screenshot
Massed Compute (Recommend Cloud) :
Please register via this link : https://vm.massedcompute.com/signup?linkId=lp_034338&sourceId=secourses&tenantId=massed-compute
Use our coupon SECourses
Our coupon works on following GPUS
L40 : 625 GB Disk Space, 128 GB RAM, 48 GB GPU: 49 cents per hour
RTX A6000 : 256 GB Disk Space, 48 GB RAM, 48 GB GPU: 31 cents per hour
ALT RTX A6000 : 256 GB Disk Space, 32 GB RAM, 48 GB GPU: 30 cents per hour
Then select our image SECourses from Creator dropdown
Then follow Massed_Compute_Instructions_READ.txt
Same as my any other Massed Compute installer script
Example tutorial for learn how to install and use Massed Compute
(Starts at 12:58) : https://youtu.be/KW-MHmoNcqo?si=G1WbG-Qw4ujWvOtG&t=778
RunPod (Cloud):
Please register via this link : https://runpod.io?ref=1aka98lq
Then follow Runpod_Instructions_READ.txt
Same as my any other RunPod installer script
Use the template written in Runpod_Instructions_READ.txt file
Example tutorial for learn how to install and use RunPod
(starts at 22:03) : https://youtu.be/KW-MHmoNcqo?si=QN8X8Sjn13ZYu-EU&t=1323
Kaggle (Free Cloud - Not Recommend):
Gradio Live Share now working so we don't need Ngrok Tunneling anymore
Register Kaggle for free and verify your phone number : https://www.kaggle.com/
Upload the Kaggle notebook file from downloaded attachments
Follow the instructions on the Kaggle notebook
How to Use Kaggle Notebooks General Tutorial
(Starts at 27:34) https://youtu.be/KW-MHmoNcqo?si=vkKTvWHbZVrn4x7h&t=1654


Comments
Furkan Gözükara
yes i recommend that
guni
shoud I remove v1 before install this v2 ?
Furkan Gözükara
because 3.10 is most commonly supported python. for example kohya still doesnt work with 3.11 afaik. have 3.10 in your system my installer will auto use it. it doesnt have to be default. the tutorial video shows it. when kaggle and google colab moves to python 3.11 i think i will move as well
BecauseReasons
I have Python 3.11, how come we're still using 3.10? Install does not work.
Furkan Gözükara
I see nice strategy
Furkan Gözükara
you are welcome
cool1
For changing the colour of the shirt, I used your Segmenter/Sam2 one after I saw that today, by telling it to mask "shirt" and then recolouring just the masked section in After Effects and that worked okayish (and also used that for the person. I tried BiRef for the person too but segmenter was faster). It missed some parts sometimes but I didn't try different values for the 2 settings. Maybe if I had that could have helped. But it's a lot faster than trying to do it all manually. Maybe some parts could be fixed manually too. So there's probably some types of shots that it could do it all accurately I think. Ideally there could be a way for the segmenter to feather the edge a bit (but maybe that can be done in other things like After Effects).
George Gostyshev
Great! Didn't see it. Thanks will check it out now
Furkan Gözükara
we have segmentation app that works with prompts check it out : https://www.patreon.com/posts/120352012
George Gostyshev
Nice addition to RMBG2. Thanks! Have a question\request. May be there's a way with this technology or any other to do good quality segmentation for complex scenes? Could be nice app to have)
Furkan Gözükara
we have both versions but this works better for me
Nobodys Hero
the other version gives better results for me
Furkan Gözükara
I added a checkbox to batch processing. run Windows_Update_App.bat and restart the app you will see it - Display Images During Batch Processing
cool1
It's converting the images from my video. The conversions are mostly roughly okay (sometimes it can't tell which bits are part of the background (eg. maybe if there's not enough light in the background or enough brightness difference) but generally it's okay. One thing is, it puts each new converted image as an image into the "output image" listbox when doing batch processing. If I'm converting about 5000 source images (or more) isn't adding them all to that image list slowing the app down (and maybe using more memory for each one - though I have plenty of RAM but less VRAM)? Maybe it might go a bit faster if only the filename was added to the listbox in batch mode or it only showed the currently converted filename or image (or the last few) when in batch mode. That way it shouldn't get slower with each new image when converting hundreds or thousands of images (eg. video frames) in a batch
Furkan Gözükara
ye that is another task. i am following maybe it will arrive too
cool1
Thanks. It's still exporting them then I'll try that. I tried it with 1 frame from the video and it seems mostly okay except part of the microphone stand got partially transparent (probably because it's a similar colour to the wall behind). It would be good if we could also change things like the colour of someone's shirt without affecting other things in the video but I assume that wouldn't be possible with this one. I was also wondering if for video it would be consistent enough. Hopefully it will.
Furkan Gözükara
It removes background and it is the best one
Furkan Gözükara
You are welcome thanks for support
Furkan Gözükara
you can remove it on exported video frames. should work fairly well
cool1
removes the background in images.
Markus
What does ist do?
Umut Hasanoglu
Thank you for your work and for making the script so soon
cool1
So can this be used instead of rotoscoping for removing a background from a video of a person (eg. if someone is singing in a room in a 1080wx1920h 30 fps video of about 3 mins) can this remove the background of the video? edit: I've tested it with a few images and so far it seems really good at it. I'm exporting a video to test with it now.