liyy201912 commited on
Commit
4ce23b9
Β·
1 Parent(s): 021be0e

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. aagenerator.py +4 -4
aagenerator.py CHANGED
@@ -134,7 +134,7 @@ def parse_args():
134
  parser.add_argument('--step_num2', default=50, type=int)
135
  parser.add_argument('--size', default=2048, type=int)
136
  parser.add_argument("--pretrained_vae_model_name_or_path", type=str,
137
- default='/fsx_laion/alvin/pretrain/sdxl-vae-fp16-fix')
138
  parser.add_argument('--normalize_dist', default=True, action="store_false")
139
  parser.add_argument('--change_whole_to_body', default=True, action="store_false")
140
  parser.add_argument('--off_wa', default=True, action="store_false")
@@ -169,9 +169,9 @@ def parse_args():
169
  parser.add_argument('--start', default=0, type=int)
170
  parser.add_argument('--end', default=8236, type=int)
171
  parser.add_argument("--pretrained_model_name_or_path", type=str,
172
- default='/fsx_laion/alvin/pretrain/stable-diffusion-2-base')
173
  parser.add_argument("--pretrained_model_name_or_path2", type=str,
174
- default='/fsx_laion/alvin/pretrain/stable-diffusion-xl-base-1.0')
175
  parser.add_argument('--prediction_type', type=str, default='v_prediction',
176
  choices=['epsilon', 'v_prediction', 'target'], help='Select a mode')
177
  parser.add_argument('--prediction_type2', type=str, default='epsilon',
@@ -783,7 +783,7 @@ class Generator:
783
  self.pipeline2.set_progress_bar_config(disable=False)
784
 
785
  self.refiner = DiffusionPipeline.from_pretrained(
786
- "/fsx_laion/alvin/pretrain/stable-diffusion-xl-refiner-1.0",
787
  text_encoder_2=self.pipeline2.text_encoder_2,
788
  vae=self.pipeline2.vae,
789
  torch_dtype=torch.float16,
 
134
  parser.add_argument('--step_num2', default=50, type=int)
135
  parser.add_argument('--size', default=2048, type=int)
136
  parser.add_argument("--pretrained_vae_model_name_or_path", type=str,
137
+ default='stabilityai/sdxl-vae-fp16-fix')
138
  parser.add_argument('--normalize_dist', default=True, action="store_false")
139
  parser.add_argument('--change_whole_to_body', default=True, action="store_false")
140
  parser.add_argument('--off_wa', default=True, action="store_false")
 
169
  parser.add_argument('--start', default=0, type=int)
170
  parser.add_argument('--end', default=8236, type=int)
171
  parser.add_argument("--pretrained_model_name_or_path", type=str,
172
+ default='stabilityai/stable-diffusion-2-base')
173
  parser.add_argument("--pretrained_model_name_or_path2", type=str,
174
+ default='stabilityai/stable-diffusion-xl-base-1.0')
175
  parser.add_argument('--prediction_type', type=str, default='v_prediction',
176
  choices=['epsilon', 'v_prediction', 'target'], help='Select a mode')
177
  parser.add_argument('--prediction_type2', type=str, default='epsilon',
 
783
  self.pipeline2.set_progress_bar_config(disable=False)
784
 
785
  self.refiner = DiffusionPipeline.from_pretrained(
786
+ "stabilityai/stable-diffusion-xl-refiner-1.0",
787
  text_encoder_2=self.pipeline2.text_encoder_2,
788
  vae=self.pipeline2.vae,
789
  torch_dtype=torch.float16,