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

IndexError: index -5178994697005420578 is out of bounds for axis 0 with size 2 #11

Open
jzhangCSER01 opened this issue Sep 11, 2023 · 0 comments

Comments

@jzhangCSER01
Copy link

Hi, I downloaded the code and ran the inference.py, but got this error
Traceback (most recent call last):
File "inference.py", line 64, in
main(input_path='input/chicago.jpg',
File "inference.py", line 49, in main
final_result_list = render_serial.render_serial(original_img, net_g, meta_brushes)
File "/data/zhang/PaintTransformer/inference/render_serial.py", line 240, in render_serial
get_single_layer_lists(param, decision, expand_img, render_size_x, render_size_y, h, w,
File "/data/zhang/PaintTransformer/inference/render_serial.py", line 20, in get_single_layer_lists
valid_foregrounds = render_utils.param2stroke(param[:, :], render_size_y, render_size_x, meta_brushes)
File "/data/zhang/PaintTransformer/inference/render_utils.py", line 55, in param2stroke
brush = paddle.to_tensor(meta_brushes_resize[index])
IndexError: index -5178994697005420578 is out of bounds for axis 0 with size 2
How could I fix this bug?

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

1 participant