jokerbit commited on
Commit
6a1bcaa
·
verified ·
1 Parent(s): b62bbe6

Upload src/pipeline.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. src/pipeline.py +2 -2
src/pipeline.py CHANGED
@@ -28,7 +28,7 @@ def load_pipeline() -> Pipeline:
28
  path,
29
  use_safetensors=False,
30
  local_files_only=True,
31
- torch_dtype=torch.bfloat16)
32
 
33
  pipeline = FluxPipeline.from_pretrained(
34
  CHECKPOINT,
@@ -38,7 +38,7 @@ def load_pipeline() -> Pipeline:
38
  torch_dtype=torch.bfloat16,
39
  ).to("cuda")
40
 
41
- pipeline.to(memory_format=torch.channels_last)
42
  for _ in range(4):
43
  pipeline("cat", num_inference_steps=4)
44
 
 
28
  path,
29
  use_safetensors=False,
30
  local_files_only=True,
31
+ torch_dtype=torch.bfloat16).to(memory_format=torch.channels_last)
32
 
33
  pipeline = FluxPipeline.from_pretrained(
34
  CHECKPOINT,
 
38
  torch_dtype=torch.bfloat16,
39
  ).to("cuda")
40
 
41
+ # pipeline.to(memory_format=torch.channels_last)
42
  for _ in range(4):
43
  pipeline("cat", num_inference_steps=4)
44