LoginSignup
0
2

More than 1 year has passed since last update.

初心者向けVisual ChatGPTの使い方with Google Colab

Last updated at Posted at 2023-03-14

事前:
1.Googleアカウント
2.課金したOpenAi Api key

youtubeにも動画を送った:
https://www.youtube.com/watch?v=bQJWMWSue_Q&t=2s

手順:
Google Colabの画面を開く
新しいFileを作る
下の順で、順次実行(pipエラーを無視して)

clone the repo

!git clone https://github.com/Armkas/visual-chatgpt-colab.git

Go to directory

cd visual-chatgpt-colab

Use my branch

!git checkout runWithCodlab

Install

!pip install -r requirements.txt

Replace with your private OpenAI key (Must paid key)

Execute these 2 lines together

import os
os.environ["OPENAI_API_KEY"] = "sk-ooooooooooooooooooooooo"

Start Visual ChatGPT !

Advice for 1 Tesla T4 15GB (Google Colab)

!python visual_chatgpt.py --load "ImageCaptioning_cuda:0,Text2Image_cuda:0"

結構待つ後に、Running on public URL: https://ooooooooooo.gradio.live
が出る。そのリンクを開く。

終わり!

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2