mirror of
https://github.com/finegrain-ai/refiners.git
synced 2024-11-21 21:58:47 +00:00
use float32 reference for textual inversion (fixes tests on CPU)
This commit is contained in:
parent
e5425e2968
commit
dd0cca5855
|
@ -45,7 +45,7 @@ def our_encoder_with_new_concepts(
|
|||
def ref_sd15_with_new_concepts(
|
||||
runwayml_weights_path: Path, test_textual_inversion_path: Path, test_device: torch.device
|
||||
):
|
||||
pipe = StableDiffusionPipeline.from_pretrained(runwayml_weights_path, torch_dtype=torch.float16).to(test_device) # type: ignore
|
||||
pipe = StableDiffusionPipeline.from_pretrained(runwayml_weights_path).to(test_device) # type: ignore
|
||||
pipe.load_textual_inversion(test_textual_inversion_path / "cat-toy") # type: ignore
|
||||
pipe.load_textual_inversion(test_textual_inversion_path / "gta5-artwork") # type: ignore
|
||||
return pipe
|
||||
|
|
Loading…
Reference in a new issue