HaCTang's Group

唐浩程课题组

Installation

After login, use nano or vim to modify ~/.bashrc. Add the following code to the end of ~/.bashrcand save the file:

1
2
. /opt/miniconda/etc/profile.d/conda.sh
export PATH="/opt/miniconda/bin:$PATH"

Then in shell:

1
source ~/.bashrc

Test if conda is initialized successfully:

1
conda --version

if the result is conda 24.11.1, it means you can access conda.

Rule

When you use conda to build a new environment, please name it as your “**{id}_{env_name}**”, avoid potential collision:
For example, “hat170_tf1.4”.

For those who want to use GPU in tmux:

If you want to use a different CUDA and cuDNN version in your environment, please change the following code according to your own environment.

Open tmux:

  1. First biuld a activate script dir:
1
mkdir -p ~/.conda/envs/hat170_tf1.15GPU/etc/conda/activate.d
  1. Biuld a bash file to set environmental variables:
1
2
3
4
5
6
cat << 'EOF' > ~/.conda/envs/hat170_tf1.15GPU/etc/conda/activate.d/env_vars.sh
#!/bin/bash
export CUDA_HOME=/usr/local/cuda
export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7,8,9
export LD_LIBRARY_PATH=/usr/local/amber24/lib:/usr/local/cuda/lib:/usr/local/cuda/lib64
EOF
  1. Add execution permission:
1
chmod +x ~/.conda/envs/hat170_tf1.15GPU/etc/conda/activate.d/env_vars.sh
  1. Reactivate the environment to apply the settings:
1
2
conda deactivate
conda activate hat170_tf1.15GPU
  1. Test your settings:
1
2
3
echo "CUDA_HOME: $CUDA_HOME"
echo "CUDA_VISIBLE_DEVICES: $CUDA_VISIBLE_DEVICES"
echo "LD_LIBRARY_PATH: $LD_LIBRARY_PATH"

屈髋和伸髋是所有有腿部参与的运动的基础,在力量举训练中,伸髋和屈髋十分重要。不同人不会屈髋的原因不同。对于我自己而言,由于长期的骨盆前倾,导致我的屈髋更像是撅屁股,这会在硬拉和深蹲中为腰部带来额外的压力,同时减少了臀部和大腿后侧链的参与。屈髋是什么可以参考这篇文章:健身时最重要也最容易被忽略的动作——屈髋 - 知乎 (zhihu.com)

Read more »
0%