how do you create something like background removal!!!!
I tried to use segmentation models to extract out the human out of the pic; but I am not sure if this will scale; + segmentation has a max-size problem which make it hard to create a 1:1 image; to extract out the object! I am trying to create a segmentation image which I will use to subtract out the background;
4 Replies
I have never had a reason to solve this problem, but i would probably use some AI model to get the mask of the person and apply it together with some feather effect
I have done similar things when making my AI drone, where I selected the person by generating the distance map by AI
used model Depth anything small
my current problem is that I am having to resize the original image to the size the model wants as they have fixed input size! using image segmentation!
Do they really have fixed input size?
There is obviously some maximum size, but you can easily work around that and the aspect ratio shouldn't be fixed
I was using something like 4:3 ratio for the depth anything using JavaScript xenova pipeline and didn't have a problem
https://removebackground.figuro.in/ you can checkout the quality its all on the client side;
Remove Background
Remove Background