SEAN icon indicating copy to clipboard operation
SEAN copied to clipboard

troubles with getting images with styles using run_UI.py

Open Naomi-Ken-Korem opened this issue 4 years ago • 6 comments

I tried to run run_UI.py. I can't get the interpolated results First - I don't understand how to apply a style image on an Opened Image. When I select one of the styles on the right side, the image, doesn't appear in the bottom part of the GUI window. (as it happened in the video that is attached).

I tried to press "mask" button, and style_linear_interpolation method runs but the saved images in style_interpolation folder, are all the same; it looks that self.obj_dic doesn't effect the generate_img. (even though odj_dic is updated according to the alpha and the styles in the loop)

Can you please show how exactly to use the UI (not the demo video, cause I can't get it from there)

Thanks in advance

Naomi-Ken-Korem avatar Jun 28 '20 11:06 Naomi-Ken-Korem

Hello, Before running run_UI.py, you need to follow step1 and step2 in UI introduction section. Please make sure all the images and corresponding style codes are in the correct folders.

Thanks.

ZPdesu avatar Jul 08 '20 20:07 ZPdesu

Thank you for your answer. I think I am a bit confused with step 2. Not sure I understand what files should be placed in which folders. There 4 type of files:

  1. labels (grayscale) in ./datasets/CelebA-HQ/test/labels/
  2. vis in ./datasets/CelebA-HQ/test/vis/
  3. images ./datasets/CelebA-HQ/test/images
  4. style codes which are placed in ./styles_test/style_codes/ and the mean style in ./styles_test/mean_style_code

I put 3 "vis" images in ./imgs/colormaps/ and I have couple of images in ./imgs/style_imgs_test/ copied from ./datasets/CelebA-HQ/test/images and their corresponding styles in ./styles_test/style_codes/

I tried to run run_UI.py but when I select a style image from the right column (which definitely has style code in ./styles_test/style_codes/) nothing happens - the selected image appears in the big window on the left side, but the style isn't transferred, and the style image itself doesn't appear on the bottom of the ui window. Do I have to click one of the buttons? what do I have to do at this stage to make it work? Thanks a lot for your replay!

Naomi-Ken-Korem avatar Jul 09 '20 12:07 Naomi-Ken-Korem

That's weird. Did you close the all the components in the checkbox "Replace Style of components"?

ZPdesu avatar Jul 11 '20 18:07 ZPdesu

I tried to download the styles_test.zip (instead of running the test.py script) and now the demo is working, thanks!

Naomi-Ken-Korem avatar Jul 12 '20 10:07 Naomi-Ken-Korem

Hello, @ZPdesu ,when I try to run run_UI.py,the UI window just appears for 1 second,maybe that's because my local machine has no enough memory of GPU.I wonder if I can run the code on server,but let the UI window to appear on my local machine? Thanks in advance.

Jessicall avatar Sep 03 '20 07:09 Jessicall

Hello, @Jessicall ,when I try to run run_UI.py,I also encountered the same problem, how did you solve it?

tiansongwang avatar Apr 27 '21 00:04 tiansongwang