Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment, conda, pip #87

Open
White-Charles opened this issue Dec 5, 2024 · 5 comments
Open

Environment, conda, pip #87

White-Charles opened this issue Dec 5, 2024 · 5 comments

Comments

@White-Charles
Copy link
Contributor

White-Charles commented Dec 5, 2024

scipy==0.19.0
numpy==1.19.5
pandas==0.20.3
pyyaml==5.1
statsmodels==0.10.2
tensorflow==1.4.0
numexpr==2.6.8
tables==3.7.0

The environment provided by author is too old, and many packages lose efficacy. These are some clear and defined packages that upgrades the requirements.txt. Users can create the new environment by below code:

conda create -n dcrnn python=3.6
conda activate dcrnn
pip install -r requirements.txt

@White-Charles
Copy link
Contributor Author

White-Charles commented Dec 6, 2024

Supply a GPU environment:

1. create virtual env with python=3.6

conda create --name dcrnn-gpu python=3.6

2. activate it

conda activate dcrnn-gpu

3. install the correct CUDA, cuDNN with conda.

conda install -c free cudatoolkit=8. cudnn=6.

4. configure the system paths in current terminal temporarily

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/ or automatically configure paths eveytime you activate this conda env by following alternative

mkdir -p $CONDA_PREFIX/etc/conda/activate.d
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/' > $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh

5. install tensorflow

pip install --upgrade pip # Be sure you're running the latest pip
pip install tensorflow-gpu==1.4 # install TensorFlow with pip

6. Verify the GPU setup

python3 -c "import tensorflow as tf; print(tf.test.is_gpu_available())"
if print 'True', you've installed tensorflow-gpu suscessfully.

7. pip install

pip install -r requirements.txt

scipy==0.19.0
numpy==1.19.5
pandas==0.20.3
pyyaml==5.1
statsmodels==0.10.2
numexpr==2.6.8
tables==3.7.0

I make sure this virtual env work well on my device NVIDIA GeForce RTX 4060 Ti

@liyaguang
Copy link
Owner

Thanks for sharing this! I'm really glad to hear that you got it working well on the RTX 4060 Ti.

Would you be willing to submit a PR to update this? Please include changes to the ReadMe and requirements.txt.

@White-Charles
Copy link
Contributor Author

I have submitted a PR to update environment files. Is my operation correct?
https://github.com/White-Charles/DCRNN
Thank you for your work, and I'm sure it's truly inspiring.

@liyaguang
Copy link
Owner

Thanks, this looks great! Could you open a PR for these changes? One small note: I think we can remove "fairchem" as it doesn't seem relevant to this repo.

@White-Charles
Copy link
Contributor Author

White-Charles commented Dec 9, 2024

I'm sorry for forgetting to edit the text. I have fixed the mistake and opened a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants