Closed oUp2Uo closed 5 months ago
Hi, yes we have faced the same issue. It's a problem related to pycolmap on windows. Pycolmap 0.5.0 is installed correctly by pip and you can import it, but when you call the reconstruction module, pycolmap throws this error (this is why we have not included pycolmap in deep-image-matching dependencies yet).
My suggestions are:
Thanks for your reply.
I have checked my pycolmap version and it is 0.6.0 (because I did the installation yesterday).
After I uninstalled pycolmap, main.py
could run now.
The console print says Not possible to read exif data. Loading only image size..
.
I have checked the photos, and they all have EXIF information.
Is this because no pycolmap?
Thank you.
Not possible to read exif data. Loading only image size..
is only a warning but the code will run fine anyway. Could you sand an image to understand why the exif are not read properly?
Yes, I have done one dataset which cannot go fine with SIFT. But superpoint+superglue goes well. Thanks for this great work ! I have tried for a long time to replace SIFT with superpoint, but I could not finish it. Until this week I found this project.
About EXIF information, I could see them in the file property.
So I think the photo has EXIF information.
But there was the warning
Not possible to read exif data. Loading only image size..
.
It will only matters the actual size/length (extrinsics) and not a big problem.
Could you check if in the Details section there are the dimensions?
Thanks for the reply.
Yes, I have checked this property, they are there.
I have done some more tests and found some points:
If I use the original photos (8K size), there are no warnings, but my PC memory is not enough to do the calculation.
If I use the photos downscaled by PhotoShop (2K size, have EXIF infomation), there are warnings.
Here is the comparison of the two images. (Sorry with the Chinese characters, but I think it is not hard to see the properties)
Hi, probably photoshop has changed the name of some tags and the library to read the exif does not load it correctly. In any case, this does not affect the correct functioning of the software. Thank you for your feedback, we will enrich the warning information!
About image size, to process your dataset you have two options:
process it at full resolution by tiles. The tiles to be matched for each pair are chosen by first matching at low resolution. Simply add the --tiling preselection
option.
or you can choose to process your images subsampled, using the --quality medium
option. Other available options are [matching_lowres,bruteforce,sequential,retrieval,custom_pairs,covisibility]
.
Thanks for the feedback, please feel free to reopen the issue or open a new one
Thanks for the reply! I have see the document of tiling and match option. I will have a try on large images.
I ran into the same issue with Pycolmap. However, when using a different codebase I am able to use Pycolmap just fine.
What I noticed when debugging a bit is that the real issue is that pytorch is imported prior to Pycolmap. When importing Pycolmap before torch, your kernel lives happily ever after!
SOLUTION:
==>
adapt "image_matching.py"
...
import h5py
import numpy as np
import pycolmap # import pycolmap here already, prior to importing torch to avoid compatibility issues
import torch
from tqdm import tqdm
...
Thanks, this solve the problem on windows! I have pushed the suggestion on dev
branch, next week I hope we will merge dev
in master
and have a new release. If you have any other issue feel free to open an issue or free to collaborate!
Hi,
After done installation by document, I tried the first step to run help and got this error: (Running on Win10)
Thank you.