[1]:
%reload_ext jupyter_ai

快速实验不同的HF Hub模型#

我们可以调用Hugging Face Hub上的模型,返回图像:

[2]:
%%ai huggingface_hub:stabilityai/stable-diffusion-2-1 --format image
It's an astronaut with a boombox

[2]:
../_images/examples_images_2_0.jpg
[3]:
%%ai huggingface_hub:runwayml/stable-diffusion-v1-5 --format image
It's an astronaut with a boombox

[3]:
../_images/examples_images_3_0.jpg
[4]:
%%ai huggingface_hub:hakurei/waifu-diffusion --format image
It's an astronaut with a boombox

[4]:
../_images/examples_images_4_0.jpg
[ ]: