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
When I run the python singleImage.py -f img command, I got the error that:
Process the image: img/sample_1.jpg
Traceback (most recent call last):
File "singleImage.py", line 129, in <module>
main(args)
File "singleImage.py", line 106, in main
render(img_ori, vertices_lst, alpha=0.6, wfp=f'inference_output/rendering_overlay/{name}.jpg')
File "~/SynergyNet/utils/render.py", line 42, in render
overlap = render_app(ver, tri, overlap, texture=tex)
UnboundLocalError: local variable 'tri' referenced before assignment
I found that it is because the connectivity argument is None by default, but I don't know how to set it to a correct value.
The text was updated successfully, but these errors were encountered:
def render(img, ver_lst, alpha=0.6, wfp=None, tex=None, connectivity=None):
# save solid mesh rendering and alpha overlaying on images global tri
if not connectivity is None:
tri = _to_ctype(connectivity.T).astype(np.int32)
Hello, thank your for sharing this amazing work.
When I run the
python singleImage.py -f img
command, I got the error that:I found that it is because the
connectivity
argument is None by default, but I don't know how to set it to a correct value.The text was updated successfully, but these errors were encountered: