IC-Light 模型部署教程dddddddddd
IC-Light 是一个操纵图像照明的项目,能够让一张普普通通的照片焕发光彩。
IC-Light,全称为“Imposing Consistent Light”,是一款由 AI 图像处理专家张吕敏(ControlNet 的作者)精心开发的创新工具。主要用于控制图像光源效果,它利用先进的机器学习技术,为图像照明领域带来了前所未有的便利与创意空间。
目前,发布了两种类型的模型:文本条件重新照明模型和背景条件模型。两种类型都采用前景图像作为输入。
进入Anaconda官网
找到快速命令行安装,选择Linux系统,复制代码进入Web SSH中粘贴进行安装


等待安装完成
apt-get update
apt-get install -y wget
apt-get install -y unzip
apt-get install -y lsof
apt-get install -y git
apt-get install -y git-lfs


git lfs install
git clone https://www.modelscope.cn/studios/AI-ModelScope/IC-Light.git
cd IC-Light
conda create -n iclight python=3.10
遇到下列代码行时输入y回车后将继续创建
conda activate iclight
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121 -i https://pypi.tuna.tsinghua.edu.cn/simple
为了安装速度更快可以将pip进行永久换源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

pip install -r requirements.txt
export GRADIO_SERVER_NAME=0.0.0.0
export GRADIO_SERVER_PORT=8080
python3 app.py
出现以下显示即为成功运行
运行成功后获取访问链接,进入 webUI 界面后即可操作:

点击此处,立即体验IC-Light!
