File size: 587 Bytes
0163a2c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import launch
import os
path = os.path.dirname(os.path.realpath(__file__))
launch.git_clone("https://github.com/WuZongWei6/Pixelization.git", os.path.join(path, "pixelization"), "pixelization", "b7142536da3a9348794bce260c10e465b8bebcb8")
# we remove __init__ because it breaks BLIP - takes over the directory named models which BLIP also uses.
try:
os.remove(os.path.join(path, "pixelization", "models", "__init__.py"))
except OSError as e:
pass
if not launch.is_installed("gdown"):
launch.run_pip("install gdown", "requirements for stable-diffusion-webui-pixelization")
|