VISIONAI / clouddream

Deepdreaming in the clouds: A Dockerized deepdream Guide
370 stars 62 forks source link

Putting Different Images in input folder and still getting same result #9

Open masterofshapes opened 9 years ago

masterofshapes commented 9 years ago

I add a group of different jpgs into the inputs folder. The script works and generates dream imagery but while the filenames match the image the name, the image generated is always the same (usually matching the first image I upload)

svkovalyov commented 9 years ago

I have the same problem

quantombone commented 9 years ago

This sometimes happens when there is an error processing the image. Make sure you have RGB jpg images. Currently, it will break if you send it a grayscale jpg image.

I recommend visiting the log: http://deepdream.vision.ai/log.html and looking for lines that look like "Error Code is 1" which indicate an error. If every image gets processed successfully it should output "Error Code is 0"

Yesterday the scripts needed for all images to end with ".jpg" but I made a change so it should work with ".jpg" ".JPG" ".JPEG" and any other jpg variant.

jakelodwick commented 9 years ago

This project is amazing - much appreciated. I was trying to get everything running on my MacBook Pro, but the web of dependencies would have taken me days to untangle. I was up and running with clouddream in about ten minutes!

Anyway, on this subject:

Yesterday the scripts needed for all images to end with ".jpg" but I made a change so it should work with ".jpg" ".JPG" ".JPEG" and any other jpg variant.

I've had no trouble getting JPEGs into the system, but for output I'm wondering if we could use PNG, TIFF, or any other format that doesn't lossily compress the output. I ask because I'm working on a video that will be 30fps at 1280x720, and I want to avoid compressing the imagery until absolutely necessary (i.e., when I'm exporting it from my video editing program). Is there anything intrinsic to the system that requires us to use JPEG compression?

I tried the obvious approach of changing references to jpg to png in process_images_once.sh and deepdream.py but to no avail:

Deepdream ./test.png
Error Code is 1

Thanks!