Ziqi commited on
Commit
4d0e27e
1 Parent(s): ac3a4de
Files changed (2) hide show
  1. .gitignore +2 -1
  2. 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')