Coder Social home page Coder Social logo

Failure to run about pycasso HOT 7 CLOSED

jezs00 avatar jezs00 commented on May 12, 2024
Failure to run

from pycasso.

Comments (7)

jezs00 avatar jezs00 commented on May 12, 2024

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.

erbmur avatar erbmur commented on May 12, 2024

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?
image

from pycasso.

jezs00 avatar jezs00 commented on May 12, 2024

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.

erbmur avatar erbmur commented on May 12, 2024

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.

image

from pycasso.

jezs00 avatar jezs00 commented on May 12, 2024

from pycasso.

erbmur avatar erbmur commented on May 12, 2024

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.
Screenshot_20230119-122123

from pycasso.

jezs00 avatar jezs00 commented on May 12, 2024

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)

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.