我想要一天分享一點「LLM從底層堆疊的技術」,並且每篇文章長度控制在三分鐘以內,讓大家不會壓力太大,但是又能夠每天成長一點。
延續 AI說書 - 從0開始 - 629 | Llama 2 輸出作為 Midjourney 輸入 的步驟,匯入 Prompt 的形式為:

欲查看生成的圖片,使用以下程式:
from IPython.display import Image
import requests
url = 'https://raw.githubusercontent.com/Denis2054/Transformers_3rd_Edition/master/Chapter20/Ship_gliding.png'
response = requests.get(url, stream = True)
with open('Ship_gliding.png', 'wb') as f:
for chunk in response.iter_content(chunk_size = 1024):
f.write(chunk)
from PIL import Image
image_path = "/content/Ship_gliding.png"
image = Image.open(image_path)
image
結果為:



























