Xilinx / xup_vitis_network_example

VNx: Vitis Network Examples
Other
137 stars 43 forks source link

Bug reported: name `ol` is not defined. #108

Closed zhangchenqi123 closed 1 year ago

zhangchenqi123 commented 1 year ago

In vnx-basic-image-transfer.ipynb In section Configure the application The ol is not defined.

image

image

This is the first time ol has appeared here, and I haven't found where it is defined before.

mariodruiz commented 1 year ago

Hi @zhangchenqi123

Thank you for reporting this. It should be either ol_w1 or ol_w0 and then in the assignation they the object should be used appropriately.

Would you be able to do a PR with the changes?

zhangchenqi123 commented 1 year ago

Okay, I'd be happy to do this, but I'm fixing another bug in this project ( My xclbin file cannot be generated properly, maybe there is a problem with the license). After I finish fixing it, I will do a PR.

zhangchenqi123 commented 1 year ago

hi @mariodruiz I've been attempting to set the ol as ol_w0 and ol_w1, but unfortunately, they don't seem to be having the desired effect. Upon comparing the original image with the received image, it became apparent that all the received images appear as solid black.(The original picture is copied from my own computer). I would greatly appreciate your expertise and any insights you might be able to offer. image

zhangchenqi123 commented 1 year ago

Aside from this issue, I've also come across another problem that I believe warrants opening a separate issue. I hope this doesn't inconvenience you in any way.

mariodruiz commented 1 year ago

can you please share here the changes you have attempted?

Does any of the notebooks work?

mariodruiz commented 1 year ago

I think that portion should be replace with

mm2s_remote = ol_w1.krnl_mm2s_1
s2mm_local = ol_w0.krnl_s2mm_1

size = img_height * img_width * 3

if hasattr(ol_w1, 'HBM0'):
    s2mm_bank = ol_w0.HBM0
    mm2s_bank = ol_w1.HBM0
elif hasattr(ol, 'bank2'):
    s2mm_bank = ol_w0.bank1
    mm2s_bank = ol_w1.bank2
else:
    s2mm_bank = ol_w0.bank1
    mm2s_bank = ol_w1.bank1
zhangchenqi123 commented 1 year ago

Ok, that works. Thanks a lot. Besides, I found another bug in the last but one cell of this notebook. image It should be tx, because on the tx end, the bytes are 'out', on the rx end, the bytes are 'in'. I will do a pr to modify this, too.