Files
Vivek Khandelwal cc4fa96831 Remove op decomposition from the v_diffusion.py (#210)
The PyTorch decomposition for the op `aten.upsample_bilinear2d.vec`
is merged in the upstream repo and hence removed from this file.
2022-07-25 17:36:26 +05:30
..
2022-07-20 21:36:42 +05:30
2022-07-20 21:36:42 +05:30

v-diffusion model

Installation

Installation (Linux)

Activate shark.venv Virtual Environment

source shark.venv/bin/activate

# Some older pip installs may not be able to handle the recent PyTorch deps
python -m pip install --upgrade pip

Install v-diffusion model and its dependencies

./setup_diffusion.sh

Run v-diffusion-pytorch model

./v-diffusion-pytorch/cfg_sample.py "the rise of consciousness":5 -n 5 -bs 5 --seed 0

Compile v-diffusion model via torch-mlir

python v_diffusion.py 2> v_diffusion_ir.mlir