Skip to content

Error in demo #72

Description

@jinyu121

Hi~
I am running the demo, and error happens:

Demo for data/demo/2008_000533.jpg
forward time 0.203548
Traceback (most recent call last):
  File "./tools/demo.py", line 170, in <module>
    superimpose_image.save(superimpose_name, 'JPEG')
  File "/home/haoyu/py2/local/lib/python2.7/site-packages/PIL/Image.py", line 1928, in save
    save_handler(self, fp, filename)
  File "/home/haoyu/py2/local/lib/python2.7/site-packages/PIL/JpegImagePlugin.py", line 607, in _save
    raise IOError("cannot write mode %s as JPEG" % im.mode)
IOError: cannot write mode RGBA as JPEG

I have tried to add .png , remove JPEG, change JPEG into PNG, not working.

Anyone can tell me how to solve it? THX

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions