ProGamerGov / neural-style-pt

PyTorch implementation of neural style transfer algorithm
MIT License
833 stars 178 forks source link

No images found after running script #88

Closed Mshriver2 closed 2 years ago

Mshriver2 commented 2 years ago

The script was working fine for me for months. When I tried to generate some new images it ran as it usually does and went through all the iterations. But the output files are nowhere to be found. I even tried giving a full path in -output. Any ideas??

my script"

python neural_style.py -style_image /mnt/e/GFX\ Textures/Patterns/Photoshop\ Pattern\ Pictures/4.jpg -content_image /media/max/90E83424E8340ACC/Users/Ben\ Stiller/Documents/Photoshop\ Projects/penguins/penguin-29.png -output_image /home/max/Documents/github_downloads/neural-style-pt/penguin-45.png -model_file models/nin_imagenet.pth -gpu 0 -backend cudnn -num_iterations 1000 -seed 123 -content_layers relu0,relu3,relu7,relu12 -style_layers relu0,relu3,relu7,relu12 -content_weight 10 -style_weight 500 -image_size 600 -optimizer adam

"

ProGamerGov commented 2 years ago

@Mshriver2 What version of PyTorch are you using?

Mshriver2 commented 2 years ago

Hey I actually solved that issue I think it is a Dolphin File explorer bug. But another problem I am having is sometimes it just outputs me grey images with no conten penguin-47-1-art_100 t.

Mshriver2 commented 2 years ago

For the last 48 hours just getting these grey image outputs. I have tried rebooting a few times as well as using diff source and style images.

ProGamerGov commented 2 years ago

@Mshriver2 Generally when this happened to me, I changed the image size by a single pixel to get it working again. But your issue may be related to a bug in PyTorch or CUDA?

Mshriver2 commented 2 years ago

Yeah it does seem to be some sort of cuda/torch bug. As I ran it with just the most basic version of the script than went back to my script and it works again now.

ProGamerGov commented 2 years ago

@Mshriver2 Glad to here that it's working again!

Mshriver2 commented 2 years ago

pretty much solved, thanks @ProGamerGov