yagudin / PyTorch-deep-photo-styletransfer

PyTorch implementation of "Deep Photo Style Transfer": https://arxiv.org/abs/1703.07511

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error on image *8.png

jajas opened this issue · comments

commented

Try to reproduce the result, but get error on image 8. Is there something wrong in that image?
I am new in this stuff, how to fix this error?

python3.6 run.py
Traceback (most recent call last):
File "run.py", line 144, in
do_run()
File "run.py", line 139, in do_run
run_idx(i)
File "run.py", line 84, in run_idx
imsize)
File "/novelview/dominique/PyTorch-deep-photo-styletransfer/image_preprocessing.py", line 183, in masks_loader
style_masks, content_masks = resize_masks(style_masks, content_masks, size)
File "/novelview/dominique/PyTorch-deep-photo-styletransfer/image_preprocessing.py", line 163, in resize_masks
masks_content = [resize_mask(mask) for mask in masks_content]
File "/novelview/dominique/PyTorch-deep-photo-styletransfer/image_preprocessing.py", line 163, in
masks_content = [resize_mask(mask) for mask in masks_content]
File "/novelview/dominique/PyTorch-deep-photo-styletransfer/image_preprocessing.py", line 160, in
resize_mask = lambda mask: resize(mask, size, mode="reflect")
File "/opt/Python-3.6.1/lib/python3.6/site-packages/skimage/transform/_warps.py", line 88, in resize
orig_rows, orig_cols = image.shape[0], image.shape[1]
IndexError: tuple index out of range