gokaygokay commited on
Commit
d6f8d33
·
verified ·
1 Parent(s): 634e1a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,7 +21,7 @@ import shutil
21
  import tempfile
22
  from functools import partial
23
  from optimum.quanto import quantize, qfloat8, freeze
24
- from diffusers import FluxPipeline
25
 
26
  from src.utils.train_util import instantiate_from_config
27
  from src.utils.camera_util import (
@@ -91,7 +91,7 @@ print('Quantizing, please wait...')
91
  quantize(pipe.transformer, qfloat8) # Consider changing to qint8 if you get invalid values
92
  freeze(pipe.transformer)
93
  print('Model quantized!')
94
- pipe.enable_model_cpu_offload()
95
 
96
 
97
  # Load 3D generation models
 
21
  import tempfile
22
  from functools import partial
23
  from optimum.quanto import quantize, qfloat8, freeze
24
+ from flux_inference import FluxPipeline
25
 
26
  from src.utils.train_util import instantiate_from_config
27
  from src.utils.camera_util import (
 
91
  quantize(pipe.transformer, qfloat8) # Consider changing to qint8 if you get invalid values
92
  freeze(pipe.transformer)
93
  print('Model quantized!')
94
+ pipe.to(device)
95
 
96
 
97
  # Load 3D generation models