Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(diffusers): various enhancements #895

Merged
merged 2 commits into from Aug 14, 2023
Merged

feat(diffusers): various enhancements #895

merged 2 commits into from Aug 14, 2023

Conversation

mudler
Copy link
Owner

@mudler mudler commented Aug 14, 2023

Description

This PR now allows stable-diffusion2.1 and similar as well:

# https://huggingface.co/stabilityai/stable-diffusion-2-1
name: sd-2.1
parameters:
  model: stabilityai/stable-diffusion-2-1
backend: diffusers

# Force CPU usage
f16: false
diffusers:
  pipeline_type: StableDiffusionPipeline
  cuda: false
  enable_parameters: "none" # This disables all parameters except the prompt
  scheduler_type: DPMSolverMultistepScheduler

It also allows loading from file, consider:

name: sd-custom
parameters:
  model: model.safetensors # relative to /models, an URL or an absolute path
backend: diffusers

# Force CPU usage
f16: false
diffusers:
  pipeline_type: StableDiffusionPipeline
  cuda: false
  enable_parameters: "negative_prompt" # Enables negative_prompts

Notes for Reviewers

It also disable safe checks as it was getting in the way of testing - I did throw away few cycles for annoying false positives.

@mudler mudler merged commit a96c3bc into master Aug 14, 2023
14 checks passed
@mudler mudler deleted the sd_enhancements branch August 14, 2023 21:12
@mudler mudler added the enhancement New feature or request label Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant