jbilcke-hf / ai-comic-factory Goto Github PK
View Code? Open in Web Editor NEWGenerate comic panels using a LLM + SDXL. Powered by Hugging Face 🤗
Home Page: https://aicomicfactory.app
License: Apache License 2.0
Generate comic panels using a LLM + SDXL. Powered by Hugging Face 🤗
Home Page: https://aicomicfactory.app
License: Apache License 2.0
I played around with my own Inference Endpoint using stabilityai/stable-diffusion-xl-base-1.0 and the Inference API. The second one worked, my own Endpoint did not. In fact, the wrong content type (test/plain) seems to be delivered at the Inference Endpoints if it is not requested in the header. Just add a "Accept": "image/png" to the request header here, rebuild and everything works fine again.
Hi, I am more of an artist and less of a coder with only some basic Python experience and I was looking to deploy this on my local computer to experiment with AI comic art. What I did was I git cloned this project to my local folder, opened .env file and changed reference APIs and added API keys to all use OpenAI, but I don't know what to do from here. How do I actually run this program? Sorry if this is an irrelevant issue, I would really appreciate some help.
RENDERING_ENGINE="OPENAI"
NEXT_PUBLIC_ENABLE_RATE_LIMITER="true"
AUTH_OPENAI_API_KEY="sk-cxxxxxx"
RENDERING_OPENAI_API_BASE_URL="https://api.openai.com/v1"
RENDERING_OPENAI_API_MODEL="dall-e-3"
I am trying to start this project on my Macbook using openai both as LLM engine and as rendering engine.
This is my current .env
setting, I start project with npm run dev
and I can see UI has been rendered successfully. But when I type some prompts to frontend website and hit "GO" button, the backend command line shows me I have too many requests for OpenAI rendering engine.
I have tried to modify let delay = enableRateLimiter ? (1000 + (500 * panelIndex)) : 1000
to let delay = enableRateLimiter ? (70000 + (500 * panelIndex)) : 1000
in index.tsx
file, however it still didn't work for me. @jbilcke I believe this is not expected, could you please take a look at this issue. Appriciate it if you could help~.
I get the following error:
C:\AI\git>git clone https://github.com/jbilcke-hf/ai-comic-factory
Cloning into 'ai-comic-factory'...
remote: Enumerating objects: 1027, done.
remote: Counting objects: 100% (198/198), done.
remote: Compressing objects: 100% (131/131), done.
Receiving objects: 80% (822/1027), 2.83 MiB | 5Receiving objects: 81% (832/1027), 2.83 MiB | 5Receiving objects: 82% (843/1027), 2.83 MiB | 5Receiving objects: 83% (853/1027), 2.83 MiB | 5Receiving objects: 84% (863/1027), 2.83 MiB | 5Receiving objects: 85% (873/1027), 2.83 MiB | 5Receiving objects: 86% (884/1027), 2.83 MiB | 5Receiving objects: 87% (894/1027), 2.83 MiB | 5Receiving objects: 88% (904/1027), 2.83 MiB | 5Receiving objects: 89% (915/1027), 2.83 MiB | 5Receiving objects: 90% (925/1027), 2.83 MiB | 5Receiving objects: 91% (935/1027), 2.83 MiB | 5Receiving objects: 92% (945/1027), 2.83 MiB | 5Receiving objects: 93% (956/1027), 2.83 MiB | 5remote: Total 1027 (delta 127), reused 121 (delta 64), pack-reused 829Receiving objects: 94% (9Receiving objects: 95% (976/1027), 2.83 MiB | 5Receiving objects: 96% (986/1027), 2.83 MiB | 5Receiving objects: 97% (997/1027), 2.83 MiB | 5Receiving objects: 98% (1007/1027), 2.83 MiB | Receiving objects: 99% (1017/1027), 2.83 MiB | Receiving objects: 100% (1027/1027), 2.83 MiB | Receiving objects: 100% (1027/1027), 3.13 MiB | 5.95 MiB/s, done.
Resolving deltas: 100% (543/543), done.
error: invalid path 'public/favicon/Icon?'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
The resulting directory is empty.
When Rostam bin Zal fought against Esfandiar, he was defeated by Esfandiar with the courage that Rostam had.
Several attacks took place between them, and in each attack Rostam was injured from Esfandiar. Because Esfandiar was strong and powerful, Rostam's attacks did not work on him, finally Rostam consulted with his father about Esfandiar, Zal said: you must prepare an arrow with two heads and aim at Esfandiar's eyes so that he becomes blind.
The reason has been said as follows: Esfandiar had a branch of a tree in his hand in his youth and hit an orphan child on the face with that branch and blinded him. So that orphan put the branch on the ground, during the war between Rostam and Esfandiar, Rostam took the same branch from the wood and cut a two-headed arrow and hit Esfandiar in his eyes and blinded him.
Is there a way ?
Nice to see the problem of guided comic generation being tackled. There is a bit of a nit-pick: there are only 1 page and 4 panels, instead of a streamline from prompt to full comic chapter. StoryBird can generate whole stories, allow for narrative tuning and editing, and then generate images accordingly. what would be the major issue preventing having this type of feature? https://storybird.ai/
Side note: for comic generation there are already tools for dynamic panels, which is worth checking, since going from storyline to deciding on aspect ratio of panel outputs look strong https://shortbread.ai/
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11457:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: ConnectTimeoutError: Connect Timeout Error
at onConnectTimeout (ai-comic-factory/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/compiled/undici/index.js:1:82152)
at ai-comic-factory/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/compiled/undici/index.js:1:81644
at Immediate._onImmediate (ai-comic-factory/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/compiled/undici/index.js:1:82034)
at process.processImmediate (node:internal/timers:476:21)
at process.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'UND_ERR_CONNECT_TIMEOUT'
}
}
I am using the INFERENCE_API method, and I have configured everything in the .env file, but every time I enter the prompt and click "Go," it gives an error. Am I using the method incorrectly? To be straightforward, I've installed all the packages and performed the standard operations. Do I still need to start Docker?
Why does the virustotal tags this site as “malicious”?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.