#
`Natural Language-Based Societies of Mind`
 > What magical trick makes us intelligent? The trick is that there is no trick. The power of intelligence stems from our vast diversity, not from any single, perfect principle. — Marvin Minsky, The Society of Mind, p. 308 [)" pip install modelscope[multi-modal] pip install decord==0.6.0 pip install fairseq pip install librosa pip install setuptools==59.5.0 pip install tensorboardX pip install open_clip_torch # [Set OCR] pip install easyocr # [Set Text-to-Video] pip install replicate==0.8.3 # [Set Image-to-3D] pip install trimesh pip3 install pymcubes # [Set TTS] - not recommended due to environmental conflicts pip install TTS pip install protobuf==3.20.3 ```
* Create the checkpoints dir ``` mkdir checkpoints && cd checkpoints mkdir huggingface mkdir modelscope ``` * Change Huggingface's setting ```bash >>> import transformers >>> print(transformers.__file__) # Get the path: {YOUR_ANACONDA_PATH}/envs/nlsom/lib/python3.8/site-packages/transformers/__init__.py ``` Open the ``{YOUR_ANACONDA_PATH}/envs/nlsom/lib/python3.8/site-packages/transformers/utils/hub.py`` and change the line: ``` torch_cache_home = os.getenv("TORCH_HOME", os.path.join(os.getenv("XDG_CACHE_HOME", "{YOUR_NLSOM_PATH}/checkpoints"), "torch")) hf_cache_home = os.path.expanduser( os.getenv("HF_HOME", os.path.join(os.getenv("XDG_CACHE_HOME", "{YOUR_NLSOM_PATH}/checkpoints"), "huggingface")) ) ``` * Similarly, the modelscope's setting ```bash >>> import modelscope >>> print(modelscope.__file__) # Get the path: ${YOUR_ANACONDA_PATH}/envs/nlsom/lib/python3.8/site-packages/modelscope/__init__.py ``` Open ``{YOUR_ANACONDA_PATH}/envs/nlsom/lib/python3.8/site-packages/modelscope/utils/file_utils.py`` and change the line: ``` default_cache_dir = Path.home().joinpath('{YOUR_NLSOM_PATH}/checkpoints', 'modelscope') ```