We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a865d50 commit ccd337aCopy full SHA for ccd337a
examples/research_projects/pytorch_xla/training/text_to_image/inference_sdxl.py
@@ -9,12 +9,13 @@
9
import torch_xla.runtime as xr
10
11
CACHE_DIR = os.environ.get("CACHE_DIR", '/mnt/bbahl/xla_cache/')
12
+OUTPUT_DIR = os.environ.get("OUTPUT_DIR", '/mnt/bbahl/trained-model/')
13
if CACHE_DIR:
14
xr.initialize_cache(CACHE_DIR, readonly=False)
15
16
17
device = xm.xla_device()
-model_path = "/mnt/bbahl/trained-model"
18
+model_path = OUTPUT_DIR
19
pipe = StableDiffusionXLPipeline.from_pretrained(
20
model_path,
21
torch_dtype=torch.bfloat16
0 commit comments