[IP Adapters] feat: allow low_cpu_mem_usage in ip adapter loading (#6946)

* feat: allow low_cpu_mem_usage in ip adapter loading

* reduce the number of device placements.

* documentation.

* throw low_cpu_mem_usage warning only once from the main entry point.
This commit is contained in:
Sayak Paul
2024-02-15 15:37:17 +05:30
committed by sayakpaul
parent 8183a770e7
commit e42e3ef1ab
3 changed files with 117 additions and 40 deletions
@@ -231,6 +231,9 @@ export_to_gif(frames, "gummy_bear.gif")
</hfoption>
</hfoptions>
> [!TIP]
> While calling `load_ip_adapter()`, pass `low_cpu_mem_usage=True` to speed up the loading time.
## Specific use cases
IP-Adapter's image prompting and compatibility with other adapters and models makes it a versatile tool for a variety of use cases. This section covers some of the more popular applications of IP-Adapter, and we can't wait to see what you come up with!