Spaces:
Sleeping
Sleeping
genevera commited on
Commit ·
0c0d5ca
1
Parent(s): 1a8a5f1
dont use xformers if cuda isnt available
Browse files227 unmodified lines228229230231232233234227 unmodified linesscheduler=use_sched,safety_checker=None,).to(device)pipeline.enable_xformers_memory_efficient_attention()# print(f"taking {steps} steps using the {scheduler} scheduler")image = pipeline(227 unmodified lines228229230231232233234235236227 unmodified linesscheduler=use_sched,safety_checker=None,).to(device)pipeline.enable_attention_slicing()if torch.cuda.is_available():pipeline.enable_xformers_memory_efficient_attention()# print(f"taking {steps} steps using the {scheduler} scheduler")image = pipeline(
app.py+3-1