Code Monkey home page Code Monkey logo

llms_stable-diffusion-v2's Introduction

LLM+stable diffusion-v2

本项目基于给定的环境形容词(keywords),拼接随机的绘画主人公,利用Qwen 1.5-1.8B随机生成相关的场景文字,进一步拼接随机的绘画风格,输入stable-diffusion-v2模型批量生成不同的图片

完成环境配置与模型下载后,你只需要指定keywords,主人公,绘画风格便可批量生成相关图片。

Environment setup

My device:Linux,PyTorch version 2.1.2+cu121

1. 首先,请安装相关依赖

pip install modelspace
pip install -r requirement.txt

2. 请下载Qwen与stable-diffusion-v2模型配置文件

python download.py

耗时较久!可能存在下来模型的文件名不一致,请进行对模型文件夹名称或者generate_img.py里面的模型路径名称进行修改。

3. 生成图片 在generate_img.py中修改你想要修改的参数,然后在终端直接运行

python generate_img.py

描述

描述

llms_stable-diffusion-v2's People

Contributors

saltygod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.