Upload DiffSketcher/script/install.sh with huggingface_hub
Browse files12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758#!/bin/bash
set -e
# Conda setup and environment creationeval "$(conda shell.bash hook)"
conda create --name svgrender python=3.10 --yesconda activate svgrenderecho "The conda environment was successfully created"
# Install PyTorch and related librariesconda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch --yesecho "Pytorch installation is complete. version: 1.12.1"
# Install xformersconda install xformers -c xformers --yesecho "xformers installation is complete."
# Install common Python dependenciespip install hydra-core omegaconfpip install freetype-py shapely svgutilspip install opencv-python scikit-image matplotlib visdom wandb BeautifulSoup4pip install triton numbapip install numpy scipy scikit-fmm einops timm fairscale==0.4.13pip install accelerate transformers safetensors datasetspip install easydict scikit-learn pytorch_lightning==2.1.0 webdatasetecho "The basic dependency library is installed."
# Additional utility librariespip install ftfy regex tqdmpip install git+https://github.com/openai/CLIP.gitecho "CLIP installation is complete."
# Install diffuserspip install diffusers==0.20.2echo "Diffusers installation is complete. version: 0.20.2"
# Clone and set up DiffVG, handling dependencies on Ubuntugit clone https://github.com/BachiLi/diffvg.gitcd diffvggit submodule update --init --recursive
# Install system dependencies for Ubuntu (to avoid potential issues)echo "Installing system dependencies for DiffVG..."sudo apt updatesudo apt install -y cmake ffmpeg build-essential libjpeg-dev libpng-dev libtiff-dev
conda install -y -c anaconda cmakeconda install -y -c conda-forge ffmpegpip install svgwrite svgpathtools cssutils torch-tools
# Install DiffVGpython setup.py installecho "DiffVG installation is complete."
# Final confirmationecho "The running environment has been successfully installed!!!"DiffSketcher/script/install.shAdded+58