I downloaded chapter 8 code from this repo twentieth morning June,2018. I unziped data.tar.gz in ch8/data directory, then I tried to run associate.py for associate rgb and depth images. But I met an error:
AttributeError("'dict_keys' object has no attribute 'remove'",)
this exception occurs in line 96 and 97 of associate.py:
first_keys.remove(a)
second_keys.remove(b)
I replaced these two lines as follows:
first_list.pop(a,None)
second_list.pop(b,None)
But another error occurs in the end:
KeyError(1305031453.359684,)
print("%f %s %f %s"%(a," ".join(first_list[a]),b-float(args.offset)," ".join(second_list[b])))
So then I commented(or deleted) these two lines,
It's done.
So maybe I should notice others about this annoying bug.
I downloaded chapter 8 code from this repo twentieth morning June,2018. I unziped data.tar.gz in ch8/data directory, then I tried to run associate.py for associate rgb and depth images. But I met an error: AttributeError("'dict_keys' object has no attribute 'remove'",) this exception occurs in line 96 and 97 of associate.py: first_keys.remove(a) second_keys.remove(b) I replaced these two lines as follows: first_list.pop(a,None) second_list.pop(b,None) But another error occurs in the end: KeyError(1305031453.359684,) print("%f %s %f %s"%(a," ".join(first_list[a]),b-float(args.offset)," ".join(second_list[b]))) So then I commented(or deleted) these two lines, It's done. So maybe I should notice others about this annoying bug.