Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brush_alpha erro #48

Open
liuzu604 opened this issue Nov 28, 2021 · 2 comments
Open

brush_alpha erro #48

liuzu604 opened this issue Nov 28, 2021 · 2 comments

Comments

@liuzu604
Copy link

Hi, The program I run returned an error message:

File "utils.py" line 286, in create_transformed_brush
brush_alpha = (brush_alpha > 0).astype(np.float32)
TypeError: '>' not supported between instances of 'NoneType' and 'int'

command:
python ../stylized-neural-painting/demo_prog.py --img_path ../stylized-neural-painting/test_images/apple.jpg --canvas_color 'white' --max_m_strokes 500 --max_divide 5 --renderer oilpaintbrush --renderer_checkpoint_dir ../stylized-neural-painting/checkpoints_G_oilpaintbrush --net_G zou-fusion-net

@jiupinjia
Copy link
Owner

Hi @liuzu604, it seems the stroke files were not loaded correctly. Can you first cd to the repo dir and then run your command? Please let me know whether it works. Thanks!

@liuzu604
Copy link
Author

Hi @jiupinjia ,Maybe it's my download problem. I didn't download stroke files from Google Drive , but from Baidu online disk of other bloggers. When I replace "--renderer oilpaintbrush" with "--renderer watercolor" , it can work normally.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants