SPADE-Tensorflow icon indicating copy to clipboard operation
SPADE-Tensorflow copied to clipboard

guide

Open ghost opened this issue 6 years ago • 7 comments

how to use guide test and how to use segmentation guide for facial attribute manipulation on your own provided image outside the dataset? get this error for guide test Traceback (most recent call last): File "main.py", line 125, in main() File "main.py", line 120, in main gan.guide_test() File "/content/SPADE-Tensorflow/SPADE.py", line 584, in guide_test style_image = load_style_image(self.guide_img, self.img_width, self.img_height, self.img_ch) File "/content/SPADE-Tensorflow/utils.py", line 156, in load_style_image img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) cv2.error: OpenCV(3.4.3) /io/opencv/modules/imgproc/src/color.cpp:181: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'

ghost avatar Jun 04 '19 17:06 ghost

Did you put the guide image? Guide testing requires a guide image.

python main.py --dataset spade_celebA --img_ch 3 --segmap_ch 3 --phase guide --guide_img ./guide_img.png

taki0112 avatar Jun 05 '19 01:06 taki0112

@taki0112 yes i put a guide image, can you post a example in repo just so I am not mistaken?

ak9250 avatar Jun 05 '19 02:06 ak9250

This error message looks like an error when there is no image. How did you set the route?

taki0112 avatar Jun 05 '19 02:06 taki0112

I see should the guide image be a segmentation guide, can you post a example in the repo? Also, can you change segmentation image to change facial attributes like smile frown, would be good to get a example of that Use standard file APIs to check for files with this prefix. [] Success to read SPADE.model-1000001 [] Load SUCCESS 0% 0/100 [00:00<?, ?it/s]2019-06-05 02:53:25.959497: I tensorflow/stream_executor/dso_loader.cc:152] successfully opened CUDA library libcublas.so.10.0 locally 100% 100/100 [00:25<00:00, 4.78it/s] [*] Guide test finished

ak9250 avatar Jun 05 '19 02:06 ak9250

The guide image is not a segmentation image.

taki0112 avatar Jun 05 '19 03:06 taki0112

@taki0112 ok would be interesting in changing segmentation image to guide facial attributes if that is possible in a example

ak9250 avatar Jun 05 '19 03:06 ak9250

Could you tell me where to find the guide image?Is it created by myself?

YingZhang007 avatar Sep 24 '20 11:09 YingZhang007