csxmli2016 / w-plus-adapter

[CVPR 2024] When StyleGAN Meets Stable Diffusion: a W+ Adapter for Personalized Image Generation
Other
117 stars 8 forks source link

inference editing stage #3

Open gaoyixuan111 opened 6 months ago

gaoyixuan111 commented 6 months ago

Hello! Thank you very much for your excellent work. As a newcomer, I don't quite understand which script file to run during the inference editing stage. How should I control the direction of attribute editing? Also, my email is gyx18336058726@163.com.

csxmli2016 commented 6 months ago

Hello! Thank you very much for your excellent work. As a newcomer, I don't quite understand which script file to run during the inference editing stage. How should I control the direction of attribute editing? Also, my email is gyx18336058726@163.com.

Hi, you can directly run the test_demo.ipynb using jupyter. If you are not familiar with jupyter, you can copy all the code of test_demo.ipynb into a '*.py' file, and replace the last code 'display( )' with grid.save('result.png') As for controling the direction, you can just adjust the direction following this https://github.com/csxmli2016/w-plus-adapter/issues/2#issuecomment-1904082119 You can control the direction scale by adjusting the parameter direction_length