SEAN
SEAN copied to clipboard
troubles with getting images with styles using run_UI.py
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
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.
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:
- labels (grayscale) in ./datasets/CelebA-HQ/test/labels/
- vis in ./datasets/CelebA-HQ/test/vis/
- images ./datasets/CelebA-HQ/test/images
- 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!
That's weird. Did you close the all the components in the checkbox "Replace Style of components"?
I tried to download the styles_test.zip (instead of running the test.py script) and now the demo is working, thanks!
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.
Hello, @Jessicall ,when I try to run run_UI.py,I also encountered the same problem, how did you solve it?