Skip to content

Commit

Permalink
feat(diffusers): various enhancements (#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler committed Aug 14, 2023
1 parent 77e1ae3 commit a96c3bc
Show file tree
Hide file tree
Showing 11 changed files with 165 additions and 101 deletions.
17 changes: 9 additions & 8 deletions api/backend/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@ func ImageGeneration(height, width, mode, step, seed int, positive_prompt, negat
_, err := inferenceModel.GenerateImage(
o.Context,
&proto.GenerateImageRequest{
Height: int32(height),
Width: int32(width),
Mode: int32(mode),
Step: int32(step),
Seed: int32(seed),
PositivePrompt: positive_prompt,
NegativePrompt: negative_prompt,
Dst: dst,
Height: int32(height),
Width: int32(width),
Mode: int32(mode),
Step: int32(step),
Seed: int32(seed),
PositivePrompt: positive_prompt,
NegativePrompt: negative_prompt,
Dst: dst,
EnableParameters: c.Diffusers.EnableParameters,
})
return err
}
Expand Down
7 changes: 4 additions & 3 deletions api/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ type Config struct {
}

type Diffusers struct {
PipelineType string `yaml:"pipeline_type"`
SchedulerType string `yaml:"scheduler_type"`
CUDA bool `yaml:"cuda"`
PipelineType string `yaml:"pipeline_type"`
SchedulerType string `yaml:"scheduler_type"`
CUDA bool `yaml:"cuda"`
EnableParameters string `yaml:"enable_parameters"` // A list of comma separated parameters to specify
}

type LLMConfig struct {
Expand Down
12 changes: 6 additions & 6 deletions extra/grpc/autogptq/backend_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a96c3bc

Please sign in to comment.