Giter Club home page Giter Club logo

comictweets's Introduction

ComicTweets

自动化构建漫画推文,使用stable diffusion来生成图片

Video Effects

Watch the video

教程

B站:https://www.bilibili.com/video/BV1pt42177v9/

Installation and Running

Windows 10/11 or Linux or macos

  1. Install Python 3.8 or later from https://www.python.org/downloads/ or Install Conda https://www.anaconda.com/download
  2. Install the required Python packages
      • Run pip install -r requirements.txt
  3. Run python main.py

Please make sure to install ImageMagick and FFmpeg if you encounter any issues.

ImageMagick Install

  1. Download and install ImageMagick from https://www.imagemagick.org/script/download.php
  2. Add ImageMagick to your PATH environment variable
  3. Put magick.exe absolute path under the video.imagemagick_path of config.yaml under the project (macos or linux negligible)

FFmpeg Install

  1. Download and install FFmpeg from https://www.ffmpeg.org/
  2. Add FFmpeg to your PATH environment variable

Introduction to use

Place the .txt file in the project root directory Then copy the name of txt into the book name of config.yaml running python main.py

GPT

Supports API2D only Type the key into the ForwardKey of chatgpt in config

下一步开发打算

  1. 并发异步执行,现在都是同步执行,后面会让生产语音和生成图片的协程并行
  2. 人物形象图,现在人物都是让GPT理解上下文的人物,形象可能会有一点变化,后面考虑使用 Reference 或者 ip-adapter 生成人物形象图参考。
  3. moviepy 代码迁移到ffmpeg的原生命令,moviepy的最新版居然是2020年!!! 已经没人更新了
  4. 代码结构优化,现在代码写的很乱,需要优化
  5. 新增ChatGPT 官方 API,因为没有key 只能使用国内的代理商,但是贵了1.5倍!!!

联系我

comictweets's People

Contributors

anning01 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.