Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|
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.
|
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
|