You are on page 1of 1

{"metadata":{"kernelspec":{"language":"python","display_name":"Python

3","name":"python3"},"language_info":
{"name":"python","version":"3.10.13","mimetype":"text/x-python","codemirror_mode":
{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"py
thon","file_extension":".py"},"kaggle":
{"accelerator":"nvidiaTeslaT4","dataSources":
[{"sourceId":6898670,"sourceType":"datasetVersion","datasetId":3954404},
{"sourceId":6925544,"sourceType":"datasetVersion","datasetId":3953428}],"dockerImag
eVersionId":30683,"isInternetEnabled":true,"language":"python","sourceType":"notebo
ok","isGpuEnabled":true}},"nbformat_minor":4,"nbformat":4,"cells":
[{"cell_type":"markdown","source":"# Colab for roop-unleashed - Gradio version\
nhttps://github.com/C0untFloyd/roop-unleashed\n","metadata":{"id":"G9BdiCppV6AS"}},
{"cell_type":"markdown","source":"Installing & preparing requirements","metadata":
{"id":"0ZYRNb0AWLLW"}},{"cell_type":"code","source":"!git clone
https://github.com/C0untFloyd/roop-unleashed.git\n%cd roop-unleashed\n!mv
/kaggle/input/config/config_colab.yaml config.yaml\n!pip install pip install -r
requirements.txt","metadata":
{"id":"t1yPuhdySqCq","trusted":true},"execution_count":null,"outputs":[]},
{"cell_type":"code","source":"!pip uninstall -y albumentations\n!pip install
albumentations\n\n\n","metadata":{"trusted":true},"execution_count":null,"outputs":
[]},{"cell_type":"code","source":"!apt-get -y update\n!apt-get -y install cuda-
toolkit-11-8\nimport os\nos.environ[\"LD_LIBRARY_PATH\"] += \":\" +
\"/usr/local/cuda-11/lib64\"\nos.environ[\"LD_LIBRARY_PATH\"] += \":\" +
\"/usr/local/cuda-11.8/lib64\"","metadata":
{"trusted":true},"execution_count":null,"outputs":[]},
{"cell_type":"code","source":"!pip uninstall gradio -y\n!pip install gradio --
upgrade","metadata":{"trusted":true},"execution_count":null,"outputs":[]},
{"cell_type":"code","source":"!pip install gradio --upgrade\n","metadata":
{"trusted":true},"execution_count":null,"outputs":[]},
{"cell_type":"code","source":"!pip show gradio","metadata":
{"trusted":true},"execution_count":null,"outputs":[]},
{"cell_type":"code","source":"# - Option 2: Running with Ngrok - #\n\nNgrok_token =
\"\" #@param {type:\"string\"}\n# Put your ngrok token here (obtainable from
https://ngrok.com)\n\nNgrok_domain = \"\" # optional, leave empty if you don't have
a domain\n\n# -------------------------------- #\n\n!pip install pyngrok\n\nfrom
pyngrok import ngrok, conf\nimport fileinput\nimport sys\n\nif Ngrok_token!=\"\":\n
ngrok.kill()\n srv=ngrok.connect(7860 ,
pyngrok_config=conf.PyngrokConfig(auth_token=Ngrok_token),\n
bind_tls=True, domain=Ngrok_domain).public_url\n print(srv)\n
get_ipython().system(\"python run.py\")\nelse:\n print('An ngrok token is
required. You can get one on https://ngrok.com and paste it into the ngrok_token
field.')","metadata":{"trusted":true},"execution_count":null,"outputs":[]},
{"cell_type":"markdown","source":"Running roop-unleashed with default
config","metadata":{"id":"u_4JQiSlV9Fi"}},{"cell_type":"code","source":"!apt-get
update && apt-get install ffmpeg libsm6 libxext6 -y\n","metadata":
{"trusted":true},"execution_count":null,"outputs":[]},
{"cell_type":"markdown","source":"### Download generated images folder\n(only
needed if you want to zip the generated output)","metadata":
{"id":"UdQ1VHdI8lCf"}}]}

You might also like