テキストから画像を生成できるオープンソースのStable Diffusionアプリ「Diffusers for Mac」がGPU/Neural Engine選択に対応し、Apple Silicon Macでは生成速度が最大2倍に。

Swift Diffusers for Mac by Hugging Face アプリ
記事内に広告が含まれています。
スポンサーリンク

 テキストから画像を生成できるオープンソースのMac用Stable Diffusionクライアント「Diffusers」がGPU/Neural Engine選択に対応し、Apple Silicon Macでは生成速度が最大2倍になっています。詳細は以下から。

Diffusers for Mac

 DiffusersはiPhone用カメラアプリ「Camera+」などを開発するPedro Cuencaさんがオープンソースで開発していたStable Diffusionアプリで、現在はCuencaさんが学習済みの機械学習モデルやデータセットなどを公開/共有するHugging Face HubのMLエンジニアになられたことで、Hugging Faceの公式Macクライアントとなっていますが、このDiffusersのバージョン1.1アップデートがリリースされています。

Swift Diffusers for Mac by Hugging Face

Generate images up to twice as fast! We benchmarked across different computers and came up with simple heuristics to choose the best hardware (CPU, GPU and Neural Engine) where your models run. Speed improvements depend on your hardware.

Diffusers – Mac App Store

 Diffusers v1.1では、テキストからの画像の生成にIntel/Apple Silicon MacのGPUまたはApple Neural Engine(以下、ANE)を選択できるようになり、GPU/ANEに最適化された学習モデルをダウンロードすることにより、

Swift Diffusers for Mac Advanced Model Settings

Hugging Faceが行ったパフォーマンスペンチマークではApple M1やM2などANEのコア数がGPUのコア数より多いApple Siliconでは、ANEを利用した方がGPUを利用するより最大2倍となる一方、ANEコア数(16コア)よりGPUコア数(32コア)が少ないApple M1 MaxチップではANEを利用するよりGPUを利用した方がパフォーマンスが倍になっていたそうです。

Swift Diffusers for Mac Performance Benchmarks

We found that the amount of memory does not seem to play a big factor on performance, but the number of CPU and GPU cores does. For example, on a M1 Max laptop, the genration with GPU is a lot faster than with ANE.

Swift 🧨Diffusers – Fast Stable Diffusion for Mac – Hugging Face

 これを元に、Diffusers v1.1はデフォルトでは最適なアクセラレーター(GPU or ANE)が自動的に選択されるようになっており、加えてStable DiffusionのGuidance Scale/Random Seedの設定、Safety checkerの無効化、画像生成のキャンセルなどUIがアップデートされています。

Swift Diffusers for Mac  v1.1 UI update

 Diffusers v1.1のシステム要件はmacOS 13.1 Ventura以降のMac (Apple Silicon推奨)で、アプリはMac App Storeで無料で公開されているので、興味のある方はチェックしてみてください。

Hugging Faceは今後iOS/iPadOS用アプリもリリースするそうです。

Diffusers v1.1

Version 1.1 of Diffusers is about Quality, Performance and UI improvements.

Performance

  • Generate images up to twice as fast! We benchmarked across different computers and came up with simple heuristics to choose the best hardware (CPU, GPU and Neural Engine) where your models run. Speed improvements depend on your hardware.
  • You can override the default selection to experiment yourself.

UI / New Features

  • Guidance Scale can be configured.
  • Safety checker can be disabled.
  • Easily reuse a random seed.
  • Display downloaded status for models.
  • Provide additional info on models and generation settings.
  • Display configured settings even when controls are not expanded.
  • Reveal model folder in Finder.
  • Allow generations to be canceled.

Quality

  • Improve model download method to prevent errors and double downloads.
  • Improved error reporting all around.

コメント

タイトルとURLをコピーしました