Skip to content

Commit 0088ad2

Browse files
Added script for icevision inference installation (airctic#893)
* added script for icevision inference installation * install torchvision and torchtext first
1 parent 046073b commit 0088ad2

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

install_icevision_inference.sh

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
platform="${1}"
2+
case ${platform} in
3+
colab)
4+
echo "- Installing icevision inference in Colab"
5+
echo "Uninstalling some dependencies to prevent errors"
6+
pip uninstall fastai -y
7+
pip uninstall torchvision -y
8+
pip uninstall torchtext -y
9+
10+
echo "- Updating torchvision"
11+
pip install torchvision==0.9.0 -U -q
12+
13+
echo "- Updating torchtext"
14+
pip install torchtext==0.9.0 -U -q
15+
16+
echo "Installing some dependencies to prevent errors"
17+
pip install PyYAML>=5.1 -U -q
18+
pip install datascience -U -q
19+
pip install tensorflow==2.4.0 -U -q
20+
pip install google-colab -U -q
21+
22+
23+
echo "- Installing icevision and icedata"
24+
pip install git+git://github.com/airctic/icevision.git#egg=icevision[inference] -U -q
25+
pip install icedata -U -q
26+
echo "icevision installation finished!"
27+
;;
28+
*) # Installing only icevision and icedata
29+
echo "- Installing icevision inference"
30+
pip install git+git://github.com/airctic/icevision.git#egg=icevision[inference] -U -q
31+
pip install icedata -U -q
32+
echo "icevision installation finished!"
33+
;;
34+
esac

0 commit comments

Comments
 (0)