jhj0517 commited on
Commit
799f10c
·
1 Parent(s): 182d369

Add notebooks

Browse files
notebooks/advanced_live_portrait_webui.ipynb ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "markdown",
5
+ "source": [
6
+ "---\n",
7
+ "\n",
8
+ "📌 **This notebook has been updated [here](https://github.com/jhj0517/AdvancedLivePortrait-WebUI/tree/master)!**\n",
9
+ "\n",
10
+ "🖋 **Author**: [jhj0517](https://github.com/jhj0517/AdvancedLivePortrait-WebUI/tree/master/notebooks/advanced-live-portrait-webui.ipynb)\n",
11
+ "\n",
12
+ "😎 **Support the Project**:\n",
13
+ "\n",
14
+ "If you find this project useful, please consider supporting it:\n",
15
+ "\n",
16
+ "<a href=\"https://ko-fi.com/jhj0517\" target=\"_blank\">\n",
17
+ " <img src=\"https://storage.ko-fi.com/cdn/kofi2.png?v=3\" alt=\"Buy Me a Coffee at ko-fi.com\" height=\"36\">\n",
18
+ "</a>\n",
19
+ "\n",
20
+ "---"
21
+ ],
22
+ "metadata": {
23
+ "id": "doKhBBXIfS21"
24
+ }
25
+ },
26
+ {
27
+ "cell_type": "code",
28
+ "source": [
29
+ "#@title #(Optional) Check GPU\n",
30
+ "#@markdown Some models may not function correctly on a CPU runtime.\n",
31
+ "\n",
32
+ "#@markdown so you should check your GPU setup before run.\n",
33
+ "!nvidia-smi"
34
+ ],
35
+ "metadata": {
36
+ "id": "23yZvUlagEsx",
37
+ "cellView": "form"
38
+ },
39
+ "execution_count": null,
40
+ "outputs": []
41
+ },
42
+ {
43
+ "cell_type": "code",
44
+ "execution_count": null,
45
+ "metadata": {
46
+ "id": "kNbSbsctxahq",
47
+ "cellView": "form"
48
+ },
49
+ "outputs": [],
50
+ "source": [
51
+ "#@title #Installation\n",
52
+ "#@markdown This cell will install dependencies for [AdvancedLivePortrait-WebUI](https://github.com/jhj0517/AdvancedLivePortrait-WebUI/tree/master)!\n",
53
+ "\n",
54
+ "!git clone https://github.com/jhj0517/AdvancedLivePortrait-WebUI.git\n",
55
+ "%cd AdvancedLivePortrait-WebUI\n",
56
+ "!pip install lmdb\n",
57
+ "!pip install ultralytics\n",
58
+ "!pip install tyro\n",
59
+ "!pip install dill\n",
60
+ "!pip install gradio-i18n\n"
61
+ ]
62
+ },
63
+ {
64
+ "cell_type": "code",
65
+ "execution_count": null,
66
+ "metadata": {
67
+ "id": "PQroYRRZzQiN",
68
+ "cellView": "form"
69
+ },
70
+ "outputs": [],
71
+ "source": [
72
+ "#@title #Run\n",
73
+ "#@markdown Once the installation is complete, you can use public URL that is displayed.\n",
74
+ "\n",
75
+ "!python app.py --share"
76
+ ]
77
+ }
78
+ ],
79
+ "metadata": {
80
+ "colab": {
81
+ "provenance": [],
82
+ "gpuType": "T4"
83
+ },
84
+ "kernelspec": {
85
+ "display_name": "Python 3",
86
+ "name": "python3"
87
+ },
88
+ "language_info": {
89
+ "name": "python"
90
+ },
91
+ "accelerator": "GPU"
92
+ },
93
+ "nbformat": 4,
94
+ "nbformat_minor": 0
95
+ }