Advertisement
Guest User

remove background

a guest
Nov 3rd, 2021
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. !git clone https://github.com/firaki12345-cmd/image-background-remove-tool.git
  2.  
  3.  
  4. !pip install pywebview==3.2
  5. !pip install gluoncv
  6. !pip install --upgrade opencv_contrib_python==4.2.0.34
  7. !pip install mxnet
  8.  
  9. os.chdir ("/content/image-background-remove-tool/tools")
  10.  
  11. !echo "u2net" | python setup.py
  12.  
  13. os.chdir ("/content/image-background-remove-tool")
  14. !pwd
  15.  
  16. !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
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement