divamgupta / stable-diffusion-tensorflow

Stable Diffusion in TensorFlow / Keras
Other
1.57k stars 227 forks source link

Question for m1 max GPU performance #28

Open h4rk8s opened 1 year ago

h4rk8s commented 1 year ago

prompt:a bit cat

steps: 50 size: 512 * 512 cfg: 7.5 number: 1

pytorch: 36.77s / 1.2~1.4it/s

tf: 42.95s / 1.1 ~ 1.4 it/s

WHY ?

h4rk8s commented 1 year ago

M1 Max 10core/CPU 32core/GPU 16inch 64GB, enable high performance model.The fan rotation is about 2000~3000

AlexanderPolyakov commented 1 year ago

I have similar setup (10CPU/24GPU, 32GB) and also see performance on par with pytorch implementation with ~1.4it/s.

h4rk8s commented 1 year ago

I have similar setup (10CPU/24GPU, 32GB) and also see performance on par with pytorch implementation with ~1.4it/s.

yes, same settings, if using lstein/stable-diffusion it works 28s/~1.7it/s (with enable CFPGAN)