Spaces:
Running
Running
Update optimum_neuron_export.py
Browse files- optimum_neuron_export.py +5 -4
optimum_neuron_export.py
CHANGED
|
@@ -53,6 +53,7 @@ from diffusers import (
|
|
| 53 |
FluxPipeline,
|
| 54 |
FluxInpaintPipeline,
|
| 55 |
FluxImg2ImgPipeline,
|
|
|
|
| 56 |
)
|
| 57 |
|
| 58 |
from optimum.neuron.cache import synchronize_hub_cache
|
|
@@ -139,10 +140,10 @@ DIFFUSION_PIPELINE_MAPPING = {
|
|
| 139 |
"tasks": ["inpaint"],
|
| 140 |
"default_task": "inpaint"
|
| 141 |
},
|
| 142 |
-
"flux-
|
| 143 |
-
"class":
|
| 144 |
-
"tasks": ["image-to-image"],
|
| 145 |
-
"default_task": "
|
| 146 |
},
|
| 147 |
}
|
| 148 |
|
|
|
|
| 53 |
FluxPipeline,
|
| 54 |
FluxInpaintPipeline,
|
| 55 |
FluxImg2ImgPipeline,
|
| 56 |
+
FluxKontextPipeline,
|
| 57 |
)
|
| 58 |
|
| 59 |
from optimum.neuron.cache import synchronize_hub_cache
|
|
|
|
| 140 |
"tasks": ["inpaint"],
|
| 141 |
"default_task": "inpaint"
|
| 142 |
},
|
| 143 |
+
"flux-kont": {
|
| 144 |
+
"class": FluxKontextPipeline,
|
| 145 |
+
"tasks": ["text-to-image", "image-to-image"],
|
| 146 |
+
"default_task": "text-to-image"
|
| 147 |
},
|
| 148 |
}
|
| 149 |
|