Coder Social home page Coder Social logo

leafyeexyz / painterleaf Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 15.43 MB

A Cute WebApp. Text2Image, Image2Image, Image2Text, Save or Star Images, Multiple Models, Chinese&English Prompt Suport. 一个可爱的 AI 绘画 WebApp, 支持文生图, 图生图, 图片收藏和下载, 多模型, 中英双语提示词. 图生文

Home Page: https://paint.leafyee.xyz

License: GNU General Public License v3.0

HTML 0.85% CSS 21.04% JavaScript 1.05% TypeScript 77.06%
cloudflare cloudflare-workers javascript workers-ai huggingface image-generation dreamshaper m2m100 stable-diffusion antd

painterleaf's Introduction

简体中文 | 正體中文 | English

PainterLeaf

  • Text-to-image, supports multiple models
  • Image-to-text, convert local images to prompts
  • Also supports image-to-image
  • Prompt supports Chinese and English (Chinese will automatically call AI translation)
  • Front-end and back-end separation, front-end based on React, back-end based on Hono, see this project
  • API provided by CloudflareAI and HuggingFace
  • Internationalization support, currently supports 简体中文, 正體中文, and English

Usage

Deploy Server

See this project

Modify src/config.json

{
  "SERVER": "https://api.xxx.workers.dev", // Your server address
}

Install Bun

Please refer to Bun.sh. Or simply run npm i -g bun

Install dependencies

bun i

Local run

bun run dev

Build

bun run build

painterleaf's People

Contributors

leafyeexyz avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

painterleaf's Issues

CUDA Out Of Memory Errors

Hello, nice work here.

I'm running into some memory management issues when using this, however. It's not happening on every single run, and I haven't identified any pattern that causes it yet, so currently it remains an intermittent error. But I've run into it 4 times now, out of a total of 14 generation runs.

Here's the error text that appears in the modal dialog:

生成失败
服务端返回错误信息: {"error":"unknown error","warnings":["CUDA out of memory. Tried to allocate 1024.00 MiB (GPU 0; 14.75 GiB total capacity; 8.46 GiB already allocated; 985.06 MiB free; 8.99 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF","There was an inference error: CUDA out of memory. Tried to allocate 1024.00 MiB (GPU 0; 14.75 GiB total capacity; 8.46 GiB already allocated; 985.06 MiB free; 8.99 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF"]}

🤷🏼‍♀️

加个图片云分享功能

主要解决不同设备的收藏图片的传递问题。考虑通过 CloudflareKV 实现,采用一定的认证机制来控制能否上传。后端新增三个接口:获取是否在云端,Get,参数为hash,下载图片,Get,参数为hash,上传图片,Post,参数为图片JSON对象和密码

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.