Requirements for Vid2Seq
lawrenceztang opened this issue · comments
I'm having a lot of trouble running Vid2Seq. Here are my steps:
- Create new TPU v2-8
gcloud compute tpus tpu-vm ssh node-1 --zone=us-central1-f
- Python version is 3.8, so update Python 3.10. Install dependencies:
sudo apt update; sudo apt install build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev curl \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
- Install Python 3.10:
curl https://pyenv.run | bash
echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
source ~/.bashrc
pyenv install 3.10.7
pyenv global 3.10.7
- Pip can't find t5x so install t5x:
git clone --branch=main https://github.com/google-research/t5x
cd t5x
python3 -m pip install -e '.[tpu]' -f \
https://storage.googleapis.com/jax-releases/libtpu_releases.html
git clone https://github.com/google-research/scenic
- pip install -r scenic/projects/vid2seq/requirements.txt
- I get
ERROR: Cannot install flax==0.5.0 and t5x==0.0.0 because these package versions have conflicting dependencies.
Now what do I do?