ComfyUI-Gemini_Flash_2.0_Exp 项目使用教程

ComfyUI-Gemini_Flash_2.0_Exp 项目使用教程

ComfyUI-Gemini_Flash_2.0_Exp A ComfyUI custom node that integrates Google's Gemini Flash 2.0 Experimental model, enabling multimodal analysis of text, images, video frames, and audio directly within ComfyUI workflows. ComfyUI-Gemini_Flash_2.0_Exp 项目地址: https://gitcode.com/gh_mirrors/co/ComfyUI-Gemini_Flash_2.0_Exp

1. 项目目录结构及介绍

ComfyUI-Gemini_Flash_2.0_Exp 项目目录结构如下:

ComfyUI-Gemini_Flash_2.0_Exp/
├── .github/             # GitHub 工作流文件夹
│   └── workflows/       # 工作流文件
├── nodes/              # 自定义节点文件
├── web/                # 网页相关文件
├── workflow/           # 工作流文件
├── .gitignore          # Git 忽略文件
├── LICENSE             # 项目许可证文件
├── README.md           # 项目说明文件
├── __init__.py         # Python 初始化文件
├── config.json         # 配置文件
├── pyproject.toml      # Python 项目配置文件
└── requirements.txt    # 项目依赖文件
  • .github/: 存放 GitHub 工作流的文件夹。
  • nodes/: 包含项目的自定义节点代码。
  • web/: 存放与网页相关的文件。
  • workflow/: 包含项目的工作流定义。
  • .gitignore: 指定 Git 忽略的文件列表。
  • LICENSE: 项目使用的 MIT 许可证。
  • README.md: 项目说明文件,包含项目的基本信息和使用说明。
  • __init__.py: Python 初始化文件,用于初始化模块。
  • config.json: 项目配置文件,用于设置 API 密钥等配置信息。
  • pyproject.toml: Python 项目配置文件,用于定义项目元数据和依赖。
  • requirements.txt: 列出项目所需的 Python 包依赖。

2. 项目的启动文件介绍

在 ComfyUI-Gemini_Flash_2.0_Exp 项目中,没有特定的启动文件。项目作为 ComfyUI 的自定义节点,通常通过 ComfyUI 管理器安装或者将项目克隆到 ComfyUI 的 custom_nodes 文件夹中。

安装完成后,可以在 ComfyUI 工作流中添加并配置 Gemini Flash 节点来使用该项目的功能。

3. 项目的配置文件介绍

项目的配置文件为 config.json,该文件用于存储项目的配置信息,例如 API 密钥等。配置文件的内容如下:

{
  "GEMINI_API_KEY": "your_api_key_here"
}

在第一次运行节点之前,需要将 "your_api_key_here" 替换为从 Google AI Studio 获取的有效 API 密钥。获取 API 密钥的步骤如下:

  1. 访问 Google AI Studio 并使用 Google 账户登录。
  2. 点击 "Get API key" 或者在设置中创建一个新的 API 密钥。
  3. 复制 API 密钥以供在 config.json 文件中使用。

确保将 API 密钥保存到 config.json 文件中,以便节点可以正确地认证和访问 Gemini Flash API。

ComfyUI-Gemini_Flash_2.0_Exp A ComfyUI custom node that integrates Google's Gemini Flash 2.0 Experimental model, enabling multimodal analysis of text, images, video frames, and audio directly within ComfyUI workflows. ComfyUI-Gemini_Flash_2.0_Exp 项目地址: https://gitcode.com/gh_mirrors/co/ComfyUI-Gemini_Flash_2.0_Exp

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

曹俐莉

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值