Skip to content

Commit

Permalink
feat: add DISCOART_DISABLE_TQDM to control tqdm
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed Aug 4, 2022
1 parent 53a8a36 commit 48bb8fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ DISCOART_CACHE_DIR='path/to/your-cache-dir' # use a custom cache directory for m
DISCOART_DISABLE_REMOTE_MODELS='1' # disable the listing of diffusion models on Github, remote diffusion models allows user to use latest models without updating the codebase.
DISCOART_REMOTE_MODELS_URL='https://yourdomain/models.yml' # use a custom remote URL for fetching models list
DISCOART_DISABLE_CHECK_MODEL_SHA='1' # disable checking local model SHA matches the remote model SHA
DISCOART_DISABLE_TQDM='1' # disable tqdm progress bar on diffusion
```

## CLI
Expand Down
4 changes: 2 additions & 2 deletions discoart/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def cond_fn(x, t, **kwargs):
clip_denoised=args.clip_denoised,
model_kwargs={},
cond_fn=cond_fn,
progress=_is_jupyter,
progress='DISCOART_DISABLE_TQDM' not in os.environ,
skip_timesteps=skip_steps,
init_image=init,
randomize_class=args.randomize_class,
Expand All @@ -397,7 +397,7 @@ def cond_fn(x, t, **kwargs):
clip_denoised=args.clip_denoised,
model_kwargs={},
cond_fn=cond_fn,
progress=_is_jupyter,
progress='DISCOART_DISABLE_TQDM' not in os.environ,
skip_timesteps=skip_steps,
init_image=init,
randomize_class=args.randomize_class,
Expand Down

0 comments on commit 48bb8fa

Please sign in to comment.