Fix allocation bug
This commit is contained in:
@@ -17,7 +17,7 @@ use burn::{
|
||||
use burn_tch::{TchBackend, TchDevice};
|
||||
|
||||
use burn::record::{self, Recorder, FullPrecisionSettings};
|
||||
use stablediffusion::binrecorder::{BinFileRecorderBuffered};
|
||||
use stablediffusion::binrecorderfast::{BinFileRecorderBuffered};
|
||||
|
||||
fn convert_dump_to_model<B: Backend>(dump_path: &str, model_name: &str, device: &B::Device) -> Result<(), Box<dyn Error>> {
|
||||
println!("Loading dump...");
|
||||
|
||||
@@ -16,7 +16,7 @@ use std::io;
|
||||
use std::process;
|
||||
|
||||
use burn::record::{self, Recorder, FullPrecisionSettings};
|
||||
use stablediffusion::binrecorder::{BinFileRecorderBuffered};
|
||||
use stablediffusion::binrecorderfast::{BinFileRecorderBuffered};
|
||||
|
||||
fn load_stable_diffusion_model_file<B: Backend>(filename: &str) -> Result<StableDiffusion<B>, record::RecorderError> {
|
||||
BinFileRecorderBuffered::<FullPrecisionSettings>::new()
|
||||
|
||||
Reference in New Issue
Block a user