Skip to content

Instantly share code, notes, and snippets.

@safa-dayo
Created May 11, 2024 10:52
Show Gist options
  • Save safa-dayo/d5a7f887c9dc4aa0130deee2faa7bd50 to your computer and use it in GitHub Desktop.
Save safa-dayo/d5a7f887c9dc4aa0130deee2faa7bd50 to your computer and use it in GitHub Desktop.
IC-LightをGoogle Colabで実行するためのコマンドです
# こちらのコマンドは以下を参照して作成しています
# https://github.com/shinshin86/IC-Light/tree/add-share-option?tab=readme-ov-file#use-google-colab
!git clone -b add-share-option https://github.com/shinshin86/IC-Light.git
%cd IC-Light
!pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121
!pip install -r requirements.txt
!python gradio_demo.py --share
# 背景も指定できるbackground-conditioned demoを試す際は以下のコメントを外し、
# 上のgradio_demo.pyはコメントアウトした状態で実行してください
# !python gradio_demo_bg.py --share
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment