Comments (7)
Thanks for posting.
This is probably a failure on my part to get it set up with a default image to help people on their first run. Looks like it's trying to run in external image mode at the moment. Try putting a png image of your choice in the pycasso\images\external\ folder.
I will have to make sure the program provides more meaningful feedback and handles nothing in the folder.
from pycasso.
Thanks for the quick reply.
Thank seems to have got me a little ruther, but it still seems to be failing. Does it default to external image rather then generated? I didn't see a seperate option to select generated?
from pycasso.
I've not seen that error before. I wonder if it's an issue with pillow as RGBA should be a valid mode - perhaps try
sudo pip3 install pillow --upgrade
If you have PIL installed instead of pillow that might cause a similar issue, not sure.
The program defaults on external rather than generated, the only difference between those two is external is for any image, generated is for images previously created by pycasso (easier to load with png metadata).
You can select mode here in the .config file:
[Providers]
###################
# Provider Weight #
###################
# Comparative chances whether any particular provider is used [integer]
# EG "external_amount = 0", "historic_amount = 1" and "stability_amount = 2" would result in:
# External images never appearing, and approximately 1 historic image appearing for every 2 stable diffusion images
external_amount = 0
historic_amount = 0
stability_amount = 0
dalle_amount = 1
So for example the above I'm only getting dalle images. You'll want to get this working on external images first though so you're not wasting credits when the screen doesn't work.
Thanks for trying this out. It's also my first time supporting anything.
from pycasso.
Not a problem as all. Glad to help.
Looks like its still throwing the same error. I have tried to uninstall pil from both pip and pip3, and it wasn't present on either, and the update didn't seem to pull anything new. I am running on the 64bit version of raspbian rather then the 32 if that could be a cause for the issue?
I won't have physical access to the pi until tonight to try it on a fresh 32bit install.
from pycasso.
from pycasso.
Looks like the issue was party on my end too. I was using the PNG generated by review_screen.py in the externals folder.
Picking another one worked, with both RGB AND RGBA. Dalle worked too.
Thanks for the and sorry if I wasted your time.
"A happy fox playing the a chainsaw" was my first image.
from pycasso.
Glad it is working for you! Reopening as this kind of highlights a possible issue I still want to test - if an image is loaded as RGB, will it break the program? I might need to throw a situational .convert into there to avoid this issue. People should be able to use whatever image they want. I also want more resilience or at least warning when files are not found.
TODO:
Write warning for all file IO
Test loading different types of PNG into program
Check example prompt 'playing the' as it doesn't exactly work with all options
from pycasso.
Related Issues (20)
- Crossed out battery symbol HOT 2
- Don't use rc.local for startup HOT 1
- ModuleNotFoundError: No module named 'piblo' HOT 21
- Configuration Migrator
- Update Readme
- Installation on RasPi Zero GRPCIO fix not working HOT 1
- Rotating screen to portrait HOT 9
- Saved images are original 512x512 rather than in-filled picture HOT 5
- "Multiple" image on resultant .png file HOT 2
- A few minor things and a thank you - Bash script pycasso install HOT 14
- Fix up stable diffusion provider
- Add negative prompts for stable API
- New: Text read from file rather than image prompt HOT 4
- Override text wrapping HOT 1
- TFT-Screen HOT 1
- Don't post image to socials if it's the test image
- Error Building wheel for Pillow (PEP 517) HOT 2
- Generated images not working, test mode not working; External images working HOT 5
- Dalle Image generation not working HOT 5
- ModuleNotFoundError: No module named 'piblo' on install HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycasso.