Skip to content

Commit

Permalink
stabvle diffusion 3 running for inference
Browse files Browse the repository at this point in the history
natural images only
  • Loading branch information
Likalto4 committed Jun 17, 2024
1 parent 94747fc commit fdf4705
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 3 deletions.
106 changes: 106 additions & 0 deletions experiments/sd3_mame/trying_sd3.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions experiments/standard_mame/config_file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ revision: fp16 # str # type of model kept for fp16 optimization
tokenizer_name: null # str
# data:
instance_data_dir: /home/ricardo/Documents/PhD/projects/diffusion-models_master/data/images/breast40k_RGB_healthy # Mandatory, str
output_dir: /home/ricardo/Documents/PhD/projects/diffusion-models_master/results/sd-v2-base_OPTIMAM # Mandatory, str <------------
output_dir: /home/ricardo/Documents/PhD/projects/diffusion-models_master/results/sd-v2-base_OPTIMAM_256 # Mandatory, str <------------
# hub:
push_to_hub: true
hub_token: null
Expand Down Expand Up @@ -40,7 +40,7 @@ resolution: 512
center_crop: false # center or random crop # this is done independenly as preprocessing step
train_text_encoder: true # train the text encoder
train_batch_size: 16 # per device
gradient_accumulation_steps: 4
gradient_accumulation_steps: 16
learning_rate: 1.0e-6 # lr after (potential) warmup
scale_lr: False #Scale the learning rate by the number of GPUs, gradient accumulation steps, and batch size
lr_scheduler: constant
Expand Down
2 changes: 1 addition & 1 deletion experiments/standard_mame/dreambooth_mammo_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
exp_path = Path.cwd().resolve() # experiment path
# visible GPUs
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"]="0"
os.environ["CUDA_VISIBLE_DEVICES"]="1"

import argparse
import yaml
Expand Down

0 comments on commit fdf4705

Please sign in to comment.