Spaces:
Sleeping
Sleeping
update
Browse files- .gitignore +2 -1
- inference.py +1 -1
.gitignore
CHANGED
@@ -1,3 +1,4 @@
|
|
1 |
experiments/*
|
2 |
trash/*
|
3 |
-
scripts/*
|
|
|
|
1 |
experiments/*
|
2 |
trash/*
|
3 |
+
scripts/*
|
4 |
+
__pycache__/*
|
inference.py
CHANGED
@@ -50,7 +50,7 @@ def inference_fn(
|
|
50 |
|
51 |
# create inference pipeline
|
52 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
53 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id,torch_dtype=torch.float16).to(device)
|
54 |
|
55 |
# make directory to save images
|
56 |
image_root_folder = os.path.join('experiments', model_id, 'inference')
|
|
|
50 |
|
51 |
# create inference pipeline
|
52 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
53 |
+
pipe = StableDiffusionPipeline.from_pretrained(os.path.join('experiments', model_id),torch_dtype=torch.float16).to(device)
|
54 |
|
55 |
# make directory to save images
|
56 |
image_root_folder = os.path.join('experiments', model_id, 'inference')
|