🎨 完整的 IOPaint 项目更新
## 主要更新 - ✨ 更新所有依赖到最新稳定版本 - 📝 添加详细的项目文档和模型推荐 - 🔧 配置 VSCode Cloud Studio 预览功能 - 🐛 修复 PyTorch API 弃用警告 ## 依赖更新 - diffusers: 0.27.2 → 0.35.2 - gradio: 4.21.0 → 5.46.0 - peft: 0.7.1 → 0.18.0 - Pillow: 9.5.0 → 11.3.0 - fastapi: 0.108.0 → 0.116.2 ## 新增文件 - CLAUDE.md - 项目架构和开发指南 - UPGRADE_NOTES.md - 详细的升级说明 - .vscode/preview.yml - 预览配置 - .vscode/LAUNCH_GUIDE.md - 启动指南 - .gitignore - 更新的忽略规则 ## 代码修复 - 修复 iopaint/model/ldm.py 中的 torch.cuda.amp.autocast() 弃用警告 ## 文档更新 - README.md - 添加模型推荐和使用指南 - 完整的项目源码(iopaint/) - Web 前端源码(web_app/) 🤖 Generated with Claude Code
This commit is contained in:
53
setup.py
Normal file
53
setup.py
Normal file
@@ -0,0 +1,53 @@
|
||||
import setuptools
|
||||
from pathlib import Path
|
||||
|
||||
package_files = Path("iopaint/web_app").glob("**/*")
|
||||
package_files = [str(it).replace("iopaint/", "") for it in package_files]
|
||||
package_files += ["model/anytext/ocr_recog/ppocr_keys_v1.txt"]
|
||||
package_files += ["model/anytext/anytext_sd15.yaml"]
|
||||
package_files += ["model/original_sd_configs/sd_xl_base.yaml"]
|
||||
package_files += ["model/original_sd_configs/sd_xl_refiner.yaml"]
|
||||
package_files += ["model/original_sd_configs/v1-inference.yaml"]
|
||||
package_files += ["model/original_sd_configs/v2-inference-v.yaml"]
|
||||
|
||||
|
||||
with open("README.md", "r", encoding="utf-8") as fh:
|
||||
long_description = fh.read()
|
||||
|
||||
|
||||
def load_requirements():
|
||||
requirements_file_name = "requirements.txt"
|
||||
requires = []
|
||||
with open(requirements_file_name) as f:
|
||||
for line in f:
|
||||
if line:
|
||||
requires.append(line.strip())
|
||||
return requires
|
||||
|
||||
|
||||
# https://setuptools.readthedocs.io/en/latest/setuptools.html#including-data-files
|
||||
setuptools.setup(
|
||||
name="IOPaint",
|
||||
version="1.6.0",
|
||||
author="PanicByte",
|
||||
author_email="cwq1913@gmail.com",
|
||||
description="Image inpainting, outpainting tool powered by SOTA AI Model",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
url="https://github.com/Sanster/IOPaint",
|
||||
packages=setuptools.find_packages("."),
|
||||
package_data={"iopaint": package_files},
|
||||
install_requires=load_requirements(),
|
||||
python_requires=">=3.7",
|
||||
entry_points={"console_scripts": ["iopaint=iopaint:entry_point"]},
|
||||
classifiers=[
|
||||
"License :: OSI Approved :: Apache Software License",
|
||||
"Operating System :: OS Independent",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.7",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
||||
],
|
||||
)
|
||||
Reference in New Issue
Block a user