Skip to content

FASTVLM 指南 · Python

FastVLM Python 指南

使用 Apple 官方 predict.py 入口与已下载的 FastVLM checkpoint 执行图像推理。

全部 FastVLM 指南

操作步骤

  1. 1

    完成官方仓库安装。

  2. 2

    下载并解压官方 checkpoint。

  3. 3

    向 predict.py 传入 checkpoint 目录、图片与提示词。

  4. 4

    将输出视为生成内容,并针对实际用途验证。

示例

Python
python predict.py \
  --model-path /path/to/checkpoint-dir \
  --image-file /path/to/image.png \
  --prompt "Describe the image."

使用一手资料复核

API、模型文件和依赖版本都可能变化。请把本页作为实现路线,并在链接的官方文档中确认当前命令与许可。

打开官方来源