Skip to content

Commit 01c1acc

Browse files
authored
sdtype_adapter refactor (#1753)
* reorganize sampler selection in sdtype_adapter * simplify image metadata generation Use a stringstream to avoid the explicit conversions to string. Also, generate from the sd.cpp struct, to reduce dependencies on the global context fields. * clean up default parameters in sdtype_adapter Most image generation parameters are not customizable through the API, and their values simply repeat the default set by sd.cpp. So, remove them from the SDParams struct, and place the needed constant values directly on the code. Also, print debug information directly from the sd.cpp parameters. And to help with type mismatches and general readability, replace the fromatting with stringstreams.
1 parent 5d89a48 commit 01c1acc

File tree

1 file changed

+125
-184
lines changed

1 file changed

+125
-184
lines changed

0 commit comments

Comments
 (0)