Agisoft Metashape

Agisoft Metashape => General => Topic started by: jinjamu on April 12, 2021, 06:53:44 PM

Title: Error message "Incompatible keypoints"
Post by: jinjamu on April 12, 2021, 06:53:44 PM
Hi,
I have been working on a rather large model of some underwater topography.  One of the steps of the process I am following involves adding cameras from a dive to a previous model (which is made up of all previous dives), and to then use a camera based alignment of the previous (accumulated) model to the new model (of the last dive) for the production of a rough model to help me to understand which areas are covered and which need further dives. 
When attempting this with my last data set I get an error "Incompatible keypoints".  The process I am following has worked fine for the first 7 dives so I cannot quite understand why I am encountering this problem now.  Any ideas would be appreciated.
Thanks and regards
John
Title: Re: Error message "Incompatible keypoints"
Post by: Alexey Pasumansky on April 13, 2021, 01:40:44 AM
Hello John,

"incompatible keypoints" message appears, when you are trying to use incremental alignment in the version 1.7.x for the project pre-calculated in 1.6 or older version. Key points from 1.6 and older versions are not compatible with 1.7 version.
Title: Re: Error message "Incompatible keypoints"
Post by: jinjamu on April 13, 2021, 09:16:28 AM
Thanks Alexey.  That could be it, I have had to do a full windows reinstall of my machine recently and although I am very certain that I was previously running 1.7, I could be mistaken.  Is there any way to check the version that the models were previously built on? 

Is there a way to "upgrade" the models to the new version or is the only option to remain on 1.6 for this model?

Thanks

John
Title: Re: Error message "Incompatible keypoints"
Post by: Alexey Pasumansky on April 13, 2021, 01:08:53 PM
Hello John,

In chunk info dialog accessible from the Workspace pane context menu you can access the information in which version the asset has been generated.

If you need to re-align some photos to the existing solution without processing everything from scratch, you can do that in 1.6 version and then continue further processing operations in 1.7 version.
Title: Re: Error message "Incompatible keypoints"
Post by: jinjamu on April 13, 2021, 04:56:21 PM
Hi Alexey,

Out of 5 previous alignments for 4 of them I was on 1.7, specifically 1.7.0.11736 and 1.7.1.11797.  I  was on 1.6.5.11249 only for the very first model.  I had no such errors aligning chunks using the same approach up until my current version which is 1.7.2.12070.  So could it be the case that the incompatibility was introduced in 1.7.2? 

In that case is it possible to either:
(a) download 1.7.1.11797 and continue working with this version?
(b) rebuild the alignment for just the first 1.6.5 chunk using 1.7.2 and move on from there?

I prefer option (b) of course

Thanks and regards

John
Title: Re: Error message "Incompatible keypoints"
Post by: Alexey Pasumansky on April 13, 2021, 10:09:10 PM
Hello John,

Can you describe your typical workflow for these projects?

Do you use only camera based chunk alignment (not using incremental alignment within the same chunk) and if you are then merging the chunks, then whether "merge tie points" option is enabled? Additionally please specify, if there are keypoints present in every chunk that you are merging.
Title: Re: Error message "Incompatible keypoints"
Post by: teemu on May 23, 2021, 10:24:09 AM
I had the same problem with my underwater wreck model. I combined chunks, and then was unable to align new cameras to the resulting chunk. I had been using v1.7.1. I updated that to v1.7.3, but with no help.

Then I tried to rebuild the point cloud with Tools --> Tie Points --> Build Point Cloud, and that solved the problem. I have no idea, why, but maybe it will reset something...
Title: Re: Error message "Incompatible keypoints"
Post by: DayGeckoArt on April 11, 2022, 05:19:06 AM
I just tried adding new photos to an existing project for the first time and I followed the instructions in the manual, doing Align Photos. I kept getting this error. Then I tried selecting the Cameras, right click, and Align Selected. That worked

Edit: I spoke to soon. The new photos aren't aligned. They show up as "filename, NA"  under the Chunk tree
Title: Re: Error message "Incompatible keypoints"
Post by: Alexey Pasumansky on April 11, 2022, 01:24:30 PM
Hello DayGeckoArt,

Which version of Metashape you are using now and in which version the existing project has been created?
Title: Re: Error message "Incompatible keypoints"
Post by: DayGeckoArt on April 11, 2022, 08:07:03 PM
Hello DayGeckoArt,

Which version of Metashape you are using now and in which version the existing project has been created?

All the same version, the trial of Metashape Pro 1.8.2
Title: Re: Error message "Incompatible keypoints"
Post by: Alexey Pasumansky on April 11, 2022, 08:30:17 PM
Hello DayGeckoArt,

How big is this project? Can you send the project saved after the alignment stage to support@agisoft.com, so that we could check it on our side? If possible please also send any image from the second sub-set that you are trying to re-align using incremental alignment feature. In case you have the processing log related to the failed alignment operation, please also send it to us.
Title: Re: Error message "Incompatible keypoints"
Post by: DayGeckoArt on April 11, 2022, 08:42:16 PM
Hello DayGeckoArt,

How big is this project? Can you send the project saved after the alignment stage to support@agisoft.com, so that we could check it on our side? If possible please also send any image from the second sub-set that you are trying to re-align using incremental alignment feature. In case you have the processing log related to the failed alignment operation, please also send it to us.

I do have a copy saved before I added the new photos. I saved to a new file before doing "Reset Alignment". But it's 20GB! I do have everything logged
Title: Re: Error message "Incompatible keypoints"
Post by: DayGeckoArt on April 11, 2022, 09:11:52 PM
BTW it doesn't do any processing, it doesn't appear to look for keypoints on the new photos. It just instantly says "Incompatible keypoints"
Title: Re: Error message "Incompatible keypoints"
Post by: Alexey Pasumansky on April 11, 2022, 09:29:08 PM
Hello DayGeckoArt,

Please then send to us just processing log, PDF report exported from the project and example of the image that you are trying to add to the existing alignment.
Title: Re: Error message "Incompatible keypoints"
Post by: Alexey Pasumansky on April 12, 2022, 02:05:03 PM
Hello DayGeckoArt,

Thank you for sharing additional information related to the project. I would say that the problem could be related to the chunk merging operation - can you please confirm, if it has been performed for this project?

If chunk merging has been applied, please specify the processing parameters (of Align Photos stage) used for each chunk, and also specify, if Merge Tie Points option has been used for the chunk merging procedure.
Title: Re: Error message "Incompatible keypoints"
Post by: DayGeckoArt on April 12, 2022, 09:29:38 PM
Hello DayGeckoArt,

Thank you for sharing additional information related to the project. I would say that the problem could be related to the chunk merging operation - can you please confirm, if it has been performed for this project?

If chunk merging has been applied, please specify the processing parameters (of Align Photos stage) used for each chunk, and also specify, if Merge Tie Points option has been used for the chunk merging procedure.

No merging because I didn't append a new chunk, I only added the new photos direclty.

I have done an append and a merge chunk with another project and that worked fine
Title: Re: Error message "Incompatible keypoints"
Post by: Alexey Pasumansky on April 13, 2022, 12:57:28 PM
Hello DayGeckoArt,

Can you please then provide step-by-step instruction, how the issue can be reproduced (starting from the newly created empty project)? I wasn't able to reproduce it following the "incremental camera alignment" procedure and the only case when the "incompatible keypoints" error has been observed was approach involving chunk merging operation.
Title: Re: Error message "Incompatible keypoints"
Post by: DayGeckoArt on April 14, 2022, 04:41:04 AM
I did exactly what the manual says

1- I started with a project that already had a dense cloud made

2- Then loaded new photos taken on a different day

3- Added a few markers to new photos

4- Ran align with "reset alignment" unchecked

5- Got error message

Also tried without step 3 and same error

Title: Re: Error message "Incompatible keypoints"
Post by: Alexey Pasumansky on April 14, 2022, 12:46:04 PM
Hello DayGeckoArt,

In the report file that you have provided I do not see any information about the camera alignment parameters used for the initial alignment and also no information about the version used for the initial alignment.

Are you able to reproduce the problem with the newly created project (using fewer images to reduce the processing time)?
Title: Re: Error message "Incompatible keypoints"
Post by: jenkinsm on April 18, 2022, 09:07:59 PM
I'm getting the same error in 1.8.2. I did merge two chunks and I'm no longer able to align new photos to the merged chunk. This is a huge problem and a big waste of time if it's not able to be resolved easily.
Title: Re: Error message "Incompatible keypoints"
Post by: DayGeckoArt on April 18, 2022, 09:52:56 PM
I'm getting the same error in 1.8.2. I did merge two chunks and I'm no longer able to align new photos to the merged chunk. This is a huge problem and a big waste of time if it's not able to be resolved easily.
They replied to my email with my report and confirmed it's caused by having a chunk made of merged chunks. I had thought Alexey was asking if my new photos were in a chunk, but the problem is apparently caused by any previous merges
Title: Re: Error message "Incompatible keypoints"
Post by: jenkinsm on April 18, 2022, 10:14:08 PM
I'm getting the same error in 1.8.2. I did merge two chunks and I'm no longer able to align new photos to the merged chunk. This is a huge problem and a big waste of time if it's not able to be resolved easily.
They replied to my email with my report and confirmed it's caused by having a chunk made of merged chunks. I had thought Alexey was asking if my new photos were in a chunk, but the problem is apparently caused by any previous merges

Figured. Did they give any workarounds or an ETA on a bugfix?
Title: Re: Error message "Incompatible keypoints"
Post by: DayGeckoArt on April 18, 2022, 11:09:38 PM
I'm getting the same error in 1.8.2. I did merge two chunks and I'm no longer able to align new photos to the merged chunk. This is a huge problem and a big waste of time if it's not able to be resolved easily.
They replied to my email with my report and confirmed it's caused by having a chunk made of merged chunks. I had thought Alexey was asking if my new photos were in a chunk, but the problem is apparently caused by any previous merges

Figured. Did they give any workarounds or an ETA on a bugfix?

No, I sent my logs from when I did the merges so maybe they'll come up with a fix.

My fix was to do align photos with Reset Alignments checked to re-align everything again. I guess if you have your previous unmerged chunks you can add photos to one of them, then merge afterward
Title: Re: Error message "Incompatible keypoints"
Post by: Alexey Pasumansky on April 19, 2022, 02:25:25 PM
I'm getting the same error in 1.8.2. I did merge two chunks and I'm no longer able to align new photos to the merged chunk. This is a huge problem and a big waste of time if it's not able to be resolved easily.

The procedure of the chunk merging operation will be fixed in 1.8.4 version, on a matter of keypoints merging.
Title: Re: Error message "Incompatible keypoints"
Post by: jenkinsm on April 19, 2022, 11:39:04 PM
I'm getting the same error in 1.8.2. I did merge two chunks and I'm no longer able to align new photos to the merged chunk. This is a huge problem and a big waste of time if it's not able to be resolved easily.
They replied to my email with my report and confirmed it's caused by having a chunk made of merged chunks. I had thought Alexey was asking if my new photos were in a chunk, but the problem is apparently caused by any previous merges

Figured. Did they give any workarounds or an ETA on a bugfix?

No, I sent my logs from when I did the merges so maybe they'll come up with a fix.

My fix was to do align photos with Reset Alignments checked to re-align everything again. I guess if you have your previous unmerged chunks you can add photos to one of them, then merge afterward

I managed to make it work by rebuilding the tie point cloud but without realigning all the photos. It still took an entire day to fix :(