Buckets:
| import argparse | |
| import torch | |
| import os | |
| from diffusers import StableDiffusionPipeline | |
| import sys | |
| PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | |
| # add project root to path | |
| sys.path.append(PROJECT_ROOT) | |
| SAMPLER_SCALES_ROOT = os.path.join(PROJECT_ROOT, 'toolkit', 'samplers_scales') | |
| parser = argparse.ArgumentParser(description='Process some images.') | |
| add_arg = parser.add_argument | |
| add_arg('--model', type=str, required=True, help='Path to model') | |
| add_arg('--sampler', type=str, required=True, help='Name of sampler') | |
| args = parser.parse_args() | |
Xet Storage Details
- Size:
- 575 Bytes
- Xet hash:
- 80ca9af1f1c84087a77a04e2c5314d6e18d11d8c44e1bcd8d93651ac50f0f18e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.