taesungp / contrastive-unpaired-translation

Contrastive unpaired image-to-image translation, faster and lighter training than cyclegan (ECCV 2020, in PyTorch)
https://taesung.me/ContrastiveUnpairedTranslation/
Other
2.19k stars 416 forks source link

Add support for Metal Performance Shaders #151

Open muctom opened 1 year ago

muctom commented 1 year ago

Pytorch supports GPU accelerated training and interference on Macs by using Metal now. This increases the training speed significantly, especially on Apple Silicon Macs. It would be great if this package would automatically use the "mps" device if available, such as it does with CUDA.