Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: source is required #3

Open
bwanaaa opened this issue Mar 21, 2019 · 3 comments
Open

error: source is required #3

bwanaaa opened this issue Mar 21, 2019 · 3 comments

Comments

@bwanaaa
Copy link

bwanaaa commented Mar 21, 2019

i copied an image file (Image00001.jpg) to the working directory that powershell uses

C:\Users\Stefan.DESKTOP-QQLBN9D>

Then I issued:

cat Image00001.jpg | docker run -i saturnism/deepdream-cli-gcs > output.jpg

and i get the above error

when i run

cat Image00001.jpg | docker run -i saturnism/deepdream-cli > output.jpg

I get

Traceback (most recent call last):
  File "./deepdream.py", line 134, in <module>
    img = np.float32(PIL.Image.open(StringIO(sys.stdin.read())))
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2028, in open
    raise IOError("cannot identify image file")
IOError: cannot identify image file

help?

@saturnism
Copy link
Owner

hiya, i don't have windows machine, but i'm not sure if windows has cat command. could i trouble you to check?

@bwanaaa
Copy link
Author

bwanaaa commented Mar 22, 2019

powershell does

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Users\Stefan> cat

cmdlet Get-Content at command pipeline position 1
Supply values for the following parameters:
Path[0]:

Maybe I have to mount the volume of windows (path of image?) in the docker container?

@saturnism
Copy link
Owner

how abt get-content -encoding byte ?

the issue is potentially that the command didn't produce the right output to be piped to the container.

the saturnism/deepdream-cli-gcs takes in a source argument that's the location of the image on google cloud storage. so piping into that won't work either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants