= 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