## Experiments for LDM Stable Diffusion and Instruct-pix2pix

### To run LDM, please install the following dependencies:

- `PyTorch == 1.13.0`
- `transformers == 4.23.1`
- `diffusers == 0.11.1`
- `datasets`

Once the dependencies are installed, you can run the following command:

```bash
python run_gaussian_shading_real.py --chacha --ring --num 1000 --ring_threshold 0.5 --w_r_start 15 --w_r_end 5 --w_r_interval 2 --random_crop_ratio 0.75
```

### To run Instruct-pix2pix, follow these steps:

1. Navigate to the directory:
   ```bash
   cd image_diffusion_pix2pix/
   ```

2. Create and activate the environment:
   ```bash
   conda env create -f environment.yaml
   conda activate ip2p
   ```

Once the environment is set up, you can run the following command:

```bash
python edit_diffuse.py --chacha --ring --ring_threshold 0.5 --w_r_start 15 --w_r_interval 2 --w_r_end 5 --num 100 --sp_prob 0.05
```