diff --git a/README.md b/README.md index 6c439aff..eb06ca89 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,12 @@ git clone --recursive https://github.com/function2-llx/MMMM.git cd MMMM mamba env create -f environment.yaml -BUILD_MONAI=1 pip install -e third-party/LuoLib/third-party/MONAI +BUILD_MONAI=1 pip install --no-build-isolation -e third-party/LuoLib/third-party/MONAI mamba activate mmmm -echo "export PYTHONPATH=$PWD:$PWD/third-party/LuoLib" >> $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh +echo \ +"export PYTHONPATH=$PWD:$PWD/third-party/LuoLib +export BUILD_MONAI=1" \ +>> $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh + ``` +, and build xformers from source / install pre-built wheel. diff --git a/environment.yaml b/environment.yaml index 54c3f46c..c6ea1935 100644 --- a/environment.yaml +++ b/environment.yaml @@ -28,3 +28,4 @@ dependencies: - pip: - cytoolz - jsonargparse[signatures, omegaconf] + # - xformers --index-url https://download.pytorch.org/whl/cu118