Downloads · 30 days
0
yujuanqin/test_mlx
test_mlx is a machine learning model from yujuanqin. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
需要修改 mlxapp 中的一些代码以避免网络请求: - mlxapp/stablediffusion/modelio.py: 将所有使用 hfhubdownload 的代码注释掉,改为使用 getfilepath; 修改 getfilepath 里的路径return os.path.join("../models", key, val) - mlxapp/txt2imagelora.py: 88 行,改为unetconfig =…
Downloads · 30 days
0
Access
Public
Updated Jun 17, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py13.8 KB · 85%
From the Hugging Face model README
git clone [email protected]:yujuanqin/test_mlx
cd test_mlx
git clone [email protected]:mvp1024/mlx-app-pack mlx_app # 需要huggingface mvp1024 权限
conda create test_mlx python=3.10
conda activate test_mlx
pip install -r mlx_app/requirements.txt
需要修改 mlx_app 中的一些代码以避免网络请求:
return os.path.join("../models", key, val)unet_config = f"../models/{repo_id}/{_MODELS[repo_id]['unet_config']}"python download_models.py
python test_mlx.py
测试结果在 result_mlx.csv,生成的图片保存在当前目录下的base_model_images文件夹。