img2img pipeline for stable diffusion. (#752)

* img2img pipeline for stable diffusion.

* Rename the arguments + fix.

* Fix for zero strength.

* Another fix.

* Another fix.

* Revert.

* Include the backtrace.

* Noise scaling.

* Fix the height/width.
This commit is contained in:
Laurent Mazare
2023-09-06 08:06:49 +02:00
committed by GitHub
parent 16bf44f6e9
commit 7299a68353
4 changed files with 91 additions and 17 deletions

View File

@ -207,11 +207,11 @@ pub type Result<T> = std::result::Result<T, Error>;
impl Error {
pub fn wrap(err: impl std::error::Error + Send + Sync + 'static) -> Self {
Self::Wrapped(Box::new(err))
Self::Wrapped(Box::new(err)).bt()
}
pub fn msg(err: impl std::error::Error + Send + Sync + 'static) -> Self {
Self::Msg(err.to_string())
Self::Msg(err.to_string()).bt()
}
pub fn bt(self) -> Self {