|
|
|
@ -296,25 +296,25 @@ |
|
|
|
|
"`image_prompts` | Think of these images more as a description of their contents. | N/A\n", |
|
|
|
|
"**Image quality:**\n", |
|
|
|
|
"`clip_guidance_scale` | Controls how much the image should look like the prompt. | 1000\n", |
|
|
|
|
"`tv_scale` | Controls the smoothness of the final output. | 150\n", |
|
|
|
|
"`range_scale` | Controls how far out of range RGB values are allowed to be. | 150\n", |
|
|
|
|
"`tv_scale` | Controls the smoothness of the final output. | 150\n", |
|
|
|
|
"`range_scale` | Controls how far out of range RGB values are allowed to be. | 150\n", |
|
|
|
|
"`sat_scale` | Controls how much saturation is allowed. From nshepperd's JAX notebook. | 0\n", |
|
|
|
|
"`cutn` | Controls how many crops to take from the image. | 16\n", |
|
|
|
|
"`cutn_batches` | Accumulate CLIP gradient from multiple batches of cuts | 2\n", |
|
|
|
|
"`cutn_batches` | Accumulate CLIP gradient from multiple batches of cuts. | 2\n", |
|
|
|
|
"**Init settings:**\n", |
|
|
|
|
"`init_image` | URL or local path | None\n", |
|
|
|
|
"`init_scale` | This enhances the effect of the init image, a good value is 1000 | 0\n", |
|
|
|
|
"`init_image` | URL or local path | None\n", |
|
|
|
|
"`init_scale` | This enhances the effect of the init image, a good value is 1000 | 0\n", |
|
|
|
|
"`skip_steps` | Controls the starting point along the diffusion timesteps | 0\n", |
|
|
|
|
"`perlin_init` | Option to start with random perlin noise | False\n", |
|
|
|
|
"`perlin_mode` | ('gray', 'color') | 'mixed'\n", |
|
|
|
|
"`perlin_init` | Option to start with random perlin noise | False\n", |
|
|
|
|
"`perlin_mode` | ('gray', 'color') | 'mixed'\n", |
|
|
|
|
"**Advanced:**\n", |
|
|
|
|
"`skip_augs` |Controls whether to skip torchvision augmentations | False\n", |
|
|
|
|
"`randomize_class` |Controls whether the imagenet class is randomly changed each iteration | True\n", |
|
|
|
|
"`clip_denoised` |Determines whether CLIP discriminates a noisy or denoised image | False\n", |
|
|
|
|
"`clamp_grad` |Experimental: Using adaptive clip grad in the cond_fn | True\n", |
|
|
|
|
"`skip_augs` | Controls whether to skip torchvision augmentations | False\n", |
|
|
|
|
"`randomize_class` | Controls whether the imagenet class is randomly changed each iteration | True\n", |
|
|
|
|
"`clip_denoised` | Determines whether CLIP discriminates a noisy or denoised image | False\n", |
|
|
|
|
"`clamp_grad` | Experimental: Using adaptive clip grad in the cond_fn | True\n", |
|
|
|
|
"`seed` | Choose a random seed and print it at end of run for reproduction | random_seed\n", |
|
|
|
|
"`fuzzy_prompt` | Controls whether to add multiple noisy prompts to the prompt losses | False\n", |
|
|
|
|
"`rand_mag` |Controls the magnitude of the random noise | 0.1\n", |
|
|
|
|
"`rand_mag` | Controls the magnitude of the random noise | 0.1\n", |
|
|
|
|
"`eta` | DDIM hyperparameter | 0.5\n", |
|
|
|
|
"\n", |
|
|
|
|
"..\n", |
|
|
|
@ -325,10 +325,10 @@ |
|
|
|
|
"Setting | Description | Default\n", |
|
|
|
|
"--- | --- | ---\n", |
|
|
|
|
"**Diffusion:**\n", |
|
|
|
|
"`timestep_respacing` | Modify this value to decrease the number of timesteps. | ddim100\n", |
|
|
|
|
"`timestep_respacing` | Modify this value to decrease the number of timesteps. | ddim100\n", |
|
|
|
|
"`diffusion_steps` || 1000\n", |
|
|
|
|
"**Diffusion:**\n", |
|
|
|
|
"`clip_models` | Models of CLIP to load. Typically the more, the better but they all come at a hefty VRAM cost. | ViT-B/32, ViT-B/16, RN50x4" |
|
|
|
|
"`clip_models` | Models of CLIP to load. Typically the more, the better but they all come at a hefty VRAM cost. | ViT-B/32, ViT-B/16, RN50x4" |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
@ -1671,7 +1671,7 @@ |
|
|
|
|
" alphas, sigmas = map(partial(append_dims, n=v.ndim), t_to_alpha_sigma(t))\n", |
|
|
|
|
" pred = input * alphas - v * sigmas\n", |
|
|
|
|
" eps = input * sigmas + v * alphas\n", |
|
|
|
|
" return DiffusionOutput(v, pred, eps)\n" |
|
|
|
|
" return DiffusionOutput(v, pred, eps)" |
|
|
|
|
], |
|
|
|
|
"outputs": [], |
|
|
|
|
"execution_count": null |
|
|
|
@ -1894,7 +1894,7 @@ |
|
|
|
|
"\n", |
|
|
|
|
"#Make folder for batch\n", |
|
|
|
|
"batchFolder = f'{outDirPath}/{batch_name}'\n", |
|
|
|
|
"createPath(batchFolder)\n" |
|
|
|
|
"createPath(batchFolder)" |
|
|
|
|
], |
|
|
|
|
"outputs": [], |
|
|
|
|
"execution_count": null |
|
|
|
@ -2686,4 +2686,4 @@ |
|
|
|
|
}, |
|
|
|
|
"nbformat": 4, |
|
|
|
|
"nbformat_minor": 4 |
|
|
|
|
} |
|
|
|
|
} |