Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !git clone https://github.com/firaki12345-cmd/image-background-remove-tool.git
- !pip install pywebview==3.2
- !pip install gluoncv
- !pip install --upgrade opencv_contrib_python==4.2.0.34
- !pip install mxnet
- os.chdir ("/content/image-background-remove-tool/tools")
- !echo "u2net" | python setup.py
- os.chdir ("/content/image-background-remove-tool")
- !pwd
- !for d in '/content/UK/Asos/Boots/Images'/*jpg; do L=${d/"/content/UK/Asos/Boots/Images/"/""}; K=${L%%.*}; python "main.py" -i "$d" -o "/content/Boots/'$K'.png" -m "u2net"; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement