tetrisd commited on
Commit
77dcb47
β€’
1 Parent(s): a25009a

Update to SD 2.1

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -54,11 +54,12 @@ def get_args():
54
  model_id_map = {
55
  'v1': 'runwayml/stable-diffusion-v1-5',
56
  'v2-base': 'stabilityai/stable-diffusion-2-base',
57
- 'v2-large': 'stabilityai/stable-diffusion-2'
 
58
  }
59
 
60
  parser = argparse.ArgumentParser()
61
- parser.add_argument('--model', '-m', type=str, default='v2-base', choices=list(model_id_map.keys()), help="which diffusion model to use")
62
  parser.add_argument('--seed', '-s', type=int, default=0, help="the random seed")
63
  parser.add_argument('--port', '-p', type=int, default=8080, help="the port to launch the demo")
64
  parser.add_argument('--no-cuda', action='store_true', help="Use CPUs instead of GPUs")
@@ -168,6 +169,8 @@ def main():
168
  md = '''# DAAM: Attention Maps for Interpreting Stable Diffusion
169
  Check out the **new** paper (2022/12/7): [What the DAAM: Interpreting Stable Diffusion Using Cross Attention](http://arxiv.org/abs/2210.04885).
170
  See our (much cleaner) [DAAM codebase](https://github.com/castorini/daam) on GitHub.
 
 
171
  '''
172
  gr.Markdown(md)
173
 
 
54
  model_id_map = {
55
  'v1': 'runwayml/stable-diffusion-v1-5',
56
  'v2-base': 'stabilityai/stable-diffusion-2-base',
57
+ 'v2-large': 'stabilityai/stable-diffusion-2',
58
+ 'v2-1-base': 'stabilityai/stable-diffusion-2-1-base'
59
  }
60
 
61
  parser = argparse.ArgumentParser()
62
+ parser.add_argument('--model', '-m', type=str, default='v2-1-base', choices=list(model_id_map.keys()), help="which diffusion model to use")
63
  parser.add_argument('--seed', '-s', type=int, default=0, help="the random seed")
64
  parser.add_argument('--port', '-p', type=int, default=8080, help="the port to launch the demo")
65
  parser.add_argument('--no-cuda', action='store_true', help="Use CPUs instead of GPUs")
 
169
  md = '''# DAAM: Attention Maps for Interpreting Stable Diffusion
170
  Check out the **new** paper (2022/12/7): [What the DAAM: Interpreting Stable Diffusion Using Cross Attention](http://arxiv.org/abs/2210.04885).
171
  See our (much cleaner) [DAAM codebase](https://github.com/castorini/daam) on GitHub.
172
+
173
+ Current model: Stable Diffusion 2.1 base.
174
  '''
175
  gr.Markdown(md)
176