Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
20230322 - Generative AI 小聚 ft. Happy Designer
Search
蒼時弦や
March 22, 2023
Technology
490
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
20230322 - Generative AI 小聚 ft. Happy Designer
TLDR
蒼時弦や
March 22, 2023
More Decks by 蒼時弦や
See All by 蒼時弦や
2024 - COSCUP - Clean Architecture in Rails
elct9620
2
220
2023 - RubyConfTW - Rethink Rails Architecture
elct9620
0
270
20230916 - DDDTW - 導入 Domain-Driven Design 的最佳時機
elct9620
0
500
2023 - WebConf - 選擇適合你的技能組合
elct9620
0
730
2022 - 默默會 - 重新學習 MVC 的 Model
elct9620
1
520
MOPCON 2022 - 從 Domain-Driven Design 看網站開發框架隱藏
elct9620
1
540
2022 - COSCUP - 我想慢慢寫程式該怎麼辦?
elct9620
0
310
2022 - COSCUP - 打造高速 Ruby 專案開發流程
elct9620
0
350
2021 - RubyKaigi - It is time to build your mruby VM on the microcontroller?
elct9620
0
320
Other Decks in Technology
See All in Technology
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
20k
いかに伝えるか 〜新卒エンジニアの教育のための、ライトノベル活用の一例
ikedon
1
130
あなたの知らないバージョン命名規則
sat
PRO
3
870
アクセスキーが漏れた日にやるべきこと- 無効化の先にある本当の対応
kazzpapa3
0
370
AI駆動開発をチームに根付かせる - 「1行も書かない」チームがHarnessを育てた1年 -
kenichirokimura
6
3.5k
Hub & Spoke 環境のネットワークルーティングを分解してみる
tsuyataku
1
460
GopherCon @シアトル に行ってきました
logica0419
0
460
Point Cloud as a Foreign Language for Multi-modal Large Language Model
takmin
0
340
ブラウザで変わるID連携(OAuth/OIDC Numa (Immersion) Workshop 2026)
oidfj
PRO
0
410
Claude Teamプランの コスト最適化を考える
rfdnxbro
2
850
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
54k
指示待ちから変化に応じるClaude Codeへ!~環境からAgentへの帰り道を作る~
gotalab555
9
1.7k
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
432
67k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
180
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
Abbi's Birthday
coloredviolet
3
9.6k
A Tale of Four Properties
chriscoyier
163
24k
Side Projects
sachag
455
43k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
310
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4.3k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.9k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
430
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
440
Transcript
除了串 API 之外工程師還能做些什麼 Generative AI Meetup ft. Happy Designer
蒼時弦也 Software Developer https://blog.aotoki.me
開始之前 生態系進化太快,都不知道該怎麼辦⋯⋯
Diffusers 簡單使用 Stable Diffusion 的方法
Hugging Face AI 領域的 GitHub,大部分開源模型都可以在上面找到
import from import = = = = = torch diffusers
StableDiffusionPipeline pipe StableDiffusionPipeline.from_pretrained( , torch.float16) pipe pipe.to( ) prompt image pipe(prompt).images[ ] # 載入模型 # 進行運算 "runwayml/stable- diffusion-v1-5" "cuda" "a photo of an astronaut riding a horse on mars" torch_dtype 0
# ... # 載入不同模型 # 多重處理 prompt image txt2image(prompt).images[ ]
image upscale(image).images[ ] image image2image(image).images[ ] = = = = "a photo of an astronaut riding a horse on mars" 0 0 0
None
http://bit.ly/3JJf16o
Replicate 目前最好用的 Serverless GPU 服務
None
from import import class def def = = = =
= return cog BasePredictor, Path, Input torch ( ): (self): (self, image: Path Input( ), scale: Input( , ) ) -> Path: output Predictor BasePredictor setup predict # 初始化、載入模型 # 處理 e.g. Stable Diffusion Pipeline description description default "Image to enlarge" "Factor to scale image by" float 1.5
$ $ cog login cog push r8.im your username your
model name /< - >/< - - >
有 GPU 的伺服器、API 都有了,剩下就是套應用
AI Gacha 使用 Diffusers、Replicate 的實驗性專案
None
http://bit.ly/3yImmgc
我的看法 能做的事情其實不多,大部分應用的成本也偏高,但是商用已經沒 有問題,剩下要處理的大概會在 跟讓更多人能 合法的版權 輕鬆上手