Gen6D icon indicating copy to clipboard operation
Gen6D copied to clipboard

colmap

Open 1gjjuser1 opened this issue 1 year ago • 5 comments

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

1gjjuser1 avatar Mar 02 '23 01:03 1gjjuser1

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

omega-cw avatar Apr 06 '23 13:04 omega-cw

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

jiwoochris avatar May 23 '23 09:05 jiwoochris

@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

IAM-P-LP avatar Jun 19 '23 12:06 IAM-P-LP

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

HomeworldL avatar Jun 20 '23 13:06 HomeworldL

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

Chen-Yulin avatar Jul 05 '24 13:07 Chen-Yulin