You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: