dongwu92 / AutoPortraitMatting

Tensorflow implementation of Automatic Portrait Matting on paper "Automatic Portrait Segmentation for Image Stylization"
Apache License 2.0
478 stars 151 forks source link

No such file or directory: 'res/org22.jpg' #15

Closed igorbarinov closed 7 years ago

igorbarinov commented 7 years ago

Hi, thank you for the repository.

I'm trying to run your example with no luck.

I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 0 and 1
I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 1 and 0
I tensorflow/core/common_runtime/gpu/gpu_device.cc:906] DMA: 0 1 
I tensorflow/core/common_runtime/gpu/gpu_device.cc:916] 0:   Y N 
I tensorflow/core/common_runtime/gpu/gpu_device.cc:916] 1:   N Y 
I tensorflow/core/common_runtime/gpu/gpu_device.cc:975] Creating TensorFlow device (/gpu:0) -> (device: 0, name: Graphics Device, pci bus id: 0000:02:00.0)
I tensorflow/core/common_runtime/gpu/gpu_device.cc:975] Creating TensorFlow device (/gpu:1) -> (device: 1, name: GeForce GTX 1080, pci bus id: 0000:01:00.0)
(1, 800, 600, 2)
Traceback (most recent call last):
  File "FCN_plus.py", line 296, in <module>
    pred()
  File "FCN_plus.py", line 275, in pred
    org0_im.save('res/org' + str(itr) + '.jpg')
  File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/PIL/Image.py", line 1695, in save
    fp = builtins.open(filename, "w+b")
IOError: [Errno 2] No such file or directory: 'res/org22.jpg'

Please help me figure it out.

igorbarinov commented 7 years ago

I figured it out, there is no res folder by default and I should create one.