Slide 12
Slide 12 text
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