edited markdown; removed regex installation (it's already in colab)
This commit is contained in:
parent
90c1b12d63
commit
a393830956
|
|
@ -33,7 +33,7 @@
|
||||||
"source": [
|
"source": [
|
||||||
"# Preparation for Colab\n",
|
"# Preparation for Colab\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Make sure you're running a GPU runtime; if not, select \"GPU\" as the hardware accelerator in Runtime > Change Runtime Type in the menu. The next cells will print the CUDA version of the runtime if it has a GPU, and install PyTorch 1.7.1."
|
"Make sure you're running a GPU runtime; if not, select \"GPU\" as the hardware accelerator in Runtime > Change Runtime Type in the menu. The next cells will print the CUDA version of the runtime if it has a GPU."
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -80,7 +80,7 @@
|
||||||
},
|
},
|
||||||
"source": [
|
"source": [
|
||||||
"MODELS = {\n",
|
"MODELS = {\n",
|
||||||
" \"ViT-B/32\": \"https://openaipublic.azureedge.net/clip/models/40d365715913c9da98579312b702a82c18be219cc2a73407c4526f58eba950af/ViT-B-32.pt\",\n",
|
" \"ViT-B/32\": \"https://openaipublic.azureedge.net/clip/models/40d365715913c9da98579312b702a82c18be219cc2a73407c4526f58eba950af/ViT-B-32.pt\",\n",
|
||||||
"}"
|
"}"
|
||||||
],
|
],
|
||||||
"execution_count": 4,
|
"execution_count": 4,
|
||||||
|
|
@ -207,7 +207,7 @@
|
||||||
"outputId": "b61049f3-0ce5-4e95-c477-9c62b2fabca4"
|
"outputId": "b61049f3-0ce5-4e95-c477-9c62b2fabca4"
|
||||||
},
|
},
|
||||||
"source": [
|
"source": [
|
||||||
"! pip install ftfy regex\n",
|
"! pip install ftfy\n",
|
||||||
"! wget https://openaipublic.azureedge.net/clip/bpe_simple_vocab_16e6.txt.gz -O bpe_simple_vocab_16e6.txt.gz"
|
"! wget https://openaipublic.azureedge.net/clip/bpe_simple_vocab_16e6.txt.gz -O bpe_simple_vocab_16e6.txt.gz"
|
||||||
],
|
],
|
||||||
"execution_count": 8,
|
"execution_count": 8,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue