liuyuan-pal / Gen6D

[ECCV2022] Gen6D: Generalizable Model-Free 6-DoF Object Pose Estimation from RGB Images
GNU General Public License v3.0
581 stars 74 forks source link

colmap #56

Open 1gjjuser1 opened 1 year ago

1gjjuser1 commented 1 year ago

I run this command on colab !python prepare.py --action sfm --database_name custom/mouse --colmap /usr/bin/colmap

But an error was reported:

qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/lib/python3.8/dist-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted at 1677736845 (unix time) try "date -d @1677736845" if you are using GNU date PC: @ 0x7f3bc204c00b gsignal SIGABRT (@0x131b) received by PID 4891 (TID 0x7f3bba477900) from PID 4891; stack trace: @ 0x7f3bc3e52631 (unknown) @ 0x7f3bc317d420 (unknown) @ 0x7f3bc204c00b gsignal @ 0x7f3bc202b859 abort @ 0x7f3bc2610aad QMessageLogger::fatal() @ 0x7f3bc2bf27ae QGuiApplicationPrivate::createPlatformIntegration() @ 0x7f3bc2bf3708 QGuiApplicationPrivate::createEventDispatcher() @ 0x7f3bc2817f55 QCoreApplicationPrivate::init() @ 0x7f3bc2bf5543 QGuiApplicationPrivate::init() @ 0x7f3bc32ff3bd QApplicationPrivate::init() @ 0x55a4527e4602 RunFeatureExtractor() @ 0x55a4527d0eaf main @ 0x7f3bc202d083 __libc_start_main @ 0x55a4527d4f6e _start Traceback (most recent call last): File "prepare.py", line 98, in build_colmap_model_no_pose(parse_database_name(args.database_name),args.colmap_path) File "/content/drive/MyDrive/gen6D/colmap_script.py", line 99, in build_colmap_model_no_pose extract_and_match_sift(colmap_path, database_path, image_path) File "/content/drive/MyDrive/gen6D/colmap_script.py", line 63, in extract_and_match_sift subprocess.run(cmd, check=True) File "/usr/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/usr/bin/colmap', 'feature_extractor', '--database_path', 'data/custom/mouse/colmap/database.db', '--image_path', 'data/custom/mouse/colmap/images']' died with <Signals.SIGABRT: 6>.

Can you help me, thank you

omega-cw commented 1 year ago

Hi, I also meet the same problem. Did you solve it?

jiwoochris commented 1 year ago

Hi, I also meet the same problem. Did you solve it?

IAM-P-LP commented 1 year ago

@liuyuan-pal I am also facing the same issue.Why does it require display?Can you please help on this.

ython prepare.py --action sfm --database_name custom/mouse --colmap colmap WARNING:root:Database already exists. we will skip db creation. qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/priyalakshmip/POSE/pose/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted at 1687173736 (unix time) try "date -d @1687173736" if you are using GNU date PC: @ 0x7f31b313300b gsignal

HomeworldL commented 1 year ago

Hi, I also meet the same problem. Maybe I use colmap in Ubuntu (22.04), but you may use it in Windows.

Chen-Yulin commented 2 months ago

I used colmap 3.9.1 windows version and met similar problem. I solved the problem by using 3.7 version