geohot / twitchslam

A toy implementation of monocular SLAM written while livestreaming
MIT License
959 stars 211 forks source link

ERROR #12

Open Yeniceugur opened 3 years ago

Yeniceugur commented 3 years ago

gur@ugur-Mac ugur@ugur-Mac twitchslam-master % F=525 python3 slam.py videos/test_drone.mp4 pygame 2.0.1 (SDL 2.0.14, Python 3.9.2) Hello from the pygame community. https://www.pygame.org/contribute.html using camera 1024x576 with F 140.000000 pygame 2.0.1 (SDL 2.0.14, Python 3.9.2) Hello from the pygame community. https://www.pygame.org/contribute.html

frame 0/628 Traceback (most recent call last): File "/Users/ugur/Public/twitchslam-master/slam.py", line 218, in slam.process_frame(frame, None if gt_pose is None else np.linalg.inv(gt_pose[i])) File "/Users/ugur/Public/twitchslam-master/slam.py", line 31, in process_frame frame = Frame(self.mapp, img, self.K, verts=verts) File "/Users/ugur/Public/twitchslam-master/frame.py", line 84, in init self.id = tid if tid is not None else mapp.add_frame(self) AttributeError: 'Map' object has no attribute 'add_frame'

PLEASE, HELP ME % F=525 python3 slam.py videos/test_drone.mp4 pygame 2.0.1 (SDL 2.0.14, Python 3.9.2) Hello from the pygame community. https://www.pygame.org/contribute.html using camera 1024x576

with F 140.000000

pygame 2.0.1 (SDL 2.0.14, Python 3.9.2) Hello from the pygame community. https://www.pygame.org/contribute.html

frame 0/628 Traceback (most recent call last): File "/Users/ugur/Public/twitchslam-master/slam.py", line 218, in slam.process_frame(frame, None if gt_pose is None else np.linalg.inv(gt_pose[i])) File "/Users/ugur/Public/twitchslam-master/slam.py", line 31, in process_frame frame = Frame(self.mapp, img, self.K, verts=verts) File "/Users/ugur/Public/twitchslam-master/frame.py", line 84, in init self.id = tid if tid is not None else mapp.add_frame(self) AttributeError: 'Map' object has no attribute 'add_frame'

Yeniceugur commented 3 years ago

HELP ME , PLEASE

chbGSmCm commented 3 years ago

Please see https://github.com/geohot/twitchslam/issues/11 for a fix. You have installed the wrong pangolin.