yujuanqin commited on
Commit
2e50aee
·
verified ·
1 Parent(s): dbcf7a0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -3
README.md CHANGED
@@ -3,14 +3,17 @@ license: apache-2.0
3
  ---
4
  ## 创建环境
5
  ```
6
- git clone https://huggingface.co/yujuanqin/test_mlx
7
  cd test_mlx
8
- git submodule update # 需要huggingface mvp1024 权限
9
- mv mlx-ap-pack mlx_app_pack
10
  conda create test_mlx python=3.10
11
  conda activate test_mlx
12
  pip install -r mlx_app_pack/requirements.txt
13
  ```
 
 
 
 
14
 
15
  ## 下载模型
16
  ```
 
3
  ---
4
  ## 创建环境
5
  ```
6
+ git clone git@hf.co:yujuanqin/test_mlx
7
  cd test_mlx
8
+ git clone git@hf.co:mvp1024/mlx-app-pack mlx_app # 需要huggingface mvp1024 权限
 
9
  conda create test_mlx python=3.10
10
  conda activate test_mlx
11
  pip install -r mlx_app_pack/requirements.txt
12
  ```
13
+ 需要修改 mlx_app 中的一些代码以避免网络请求:
14
+ - mlx_app/stable_diffusion/model_io.py: 将所有使用 hf_hub_download 的代码注释掉,改为使用 get_file_path; 修改 get_file_path 里的路径`return os.path.join("../models", key, val)`
15
+ - mlx_app/txt2image_lora.py: 88 行,改为`unet_config = f"../models/{repo_id}/{_MODELS[repo_id]['unet_config']}"`
16
+
17
 
18
  ## 下载模型
19
  ```