Agisoft Metashape

Agisoft Metashape => General => Topic started by: alexb on December 28, 2013, 07:42:15 PM

Title: parametrezing texture atlas freez at 70%
Post by: alexb on December 28, 2013, 07:42:15 PM
hello, since last update, parametrezing texture atlas freez at 70%. I changed option, size... same problem... anyone have ever deal with this?
Title: Re: parametrezing texture atlas freez at 70%
Post by: Alexey Pasumansky on December 28, 2013, 08:51:39 PM
Hello alexb,

If Color correction option is turned on the texture generation could take much longer time.
Title: Re: parametrezing texture atlas freez at 70%
Post by: alexb on December 28, 2013, 10:23:26 PM
thanks alexey,
i understand. but it's not turned on. and it's unusually long. I've downgraded version but it seems to not change anything.
What is strange is that it gets to 70% in few minutes then freeze for hours. i'll try to give it the next 8h.
is the numbers of maching points have a direct influence on this?
Is the gpu used here?
Title: Re: parametrezing texture atlas freez at 70%
Post by: Alexey Pasumansky on December 28, 2013, 10:32:35 PM
Hello alexb,

Could you please provide the log, chunk info data and texturing parameters used? Please also check that the process is not in swap.
Title: Re: parametrezing texture atlas freez at 70%
Post by: alexb on December 28, 2013, 10:50:09 PM
yes, how should I do that? the soft freeze... ???
last line in the console:
heap cleanup: 12044980 -> 7787299
packing 45607 charts...

chunk (63 cameras, 95158 points)

texture: generic, mosaic, 8192 x1, no color correction.
Title: Re: parametrezing texture atlas freez at 70%
Post by: Alexey Pasumansky on December 28, 2013, 11:00:13 PM
Hello alexb,

45607 - it's extremely high nubmer of texture charts, it may be caused by huge number of faces in the model or may be a result of disabled interpolation during mesh generation (former Sharp mode).
Title: Re: parametrezing texture atlas freez at 70%
Post by: alexb on December 28, 2013, 11:13:57 PM
thanks i'll check!
Title: Re: parametrezing texture atlas freez at 70%
Post by: alexb on December 29, 2013, 02:16:11 PM
argh!  :o I now get a full black map...
Title: Re: parametrezing texture atlas freez at 70%
Post by: alexb on December 29, 2013, 03:31:40 PM
and with fewer reference point on cameras...
Title: Re: parametrezing texture atlas freez at 70%
Post by: Alexey Pasumansky on December 29, 2013, 03:41:45 PM
Hello alexb,

Nuber of points in sparse point cloud doesn't matter in the texture generation process.
In the log file the number of charts in the texture atlas is still very high, if you open Tools Menu -> View Mesh UVs you can see that the texture atlas is scattered and filled with extremely tiny pieces.

Please provide screenshot of the Chunk Info.
Title: Re: parametrezing texture atlas freez at 70%
Post by: alexb on December 29, 2013, 03:51:52 PM
alexey, thanks for answering today.
Title: Re: parametrezing texture atlas freez at 70%
Post by: alexb on December 30, 2013, 12:35:22 AM
well, downgradedto previous vertion and no more problems...
Title: Re: parametrezing texture atlas freez at 70%
Post by: bartosh44 on January 04, 2014, 06:16:32 PM
I had also similair case with freeze at 70% with no differences when I decimated mesh inside Agisoft (I left it for all night for calculation without finish - freeze). Import decimated mesh from Zbrush also didn`t help. It was strange becouse if I set up medium mesh size to medium everything was all right but when I set up to high and decimated to similair count of faces it freezed at 70% (when I generated atlas). Maybe I messed up something becouse I`ve done that during the night ;) I`ve found solution for me. I`ve made new UV in Zbrush (AUV tile) and reimported that mesh with UV into Agisoft. In my case worked perfectly. Even without decimation (8K texture). It was my test with that: http://www.youtube.com/watch?v=GNQ_tzDvif8&hd=1 (http://www.youtube.com/watch?v=GNQ_tzDvif8&hd=1)
Edit: helped me also setting up multiple uv texture in Photoscan (8K x 6). When I set up same mesh to 1x8K its freezing at 70%
Title: Re: parametrezing texture atlas freez at 70%
Post by: cbnewham on January 07, 2014, 02:56:08 PM
I too have the freeze at 70%

I currently have about 60 or 70 cameras active and built the texture at 32768 (1x) with a model with 300,000 faces, colour correction on. It takes a minute or so to get to 70% and then stays there for hours before completing, running at 19% CPU and using very little memory. Is the colour correction matching the various cameras so they blend nicely? (I can't find an explanation of what this is supposed to do).

Is there any way around this (both the "hanging" problem and building a bigger texture map)? I find the final texture is not a high enough resolution.
Title: Re: parametrezing texture atlas freez at 70%
Post by: alexb on January 07, 2014, 03:28:09 PM
I too have the freeze at 70%

I currently have about 60 or 70 cameras active and built the texture at 32768 (1x) with a model with 300,000 faces, colour correction on. It takes a minute or so to get to 70% and then stays there for hours before completing, running at 19% CPU and using very little memory. Is the colour correction matching the various cameras so they blend nicely? (I can't find an explanation of what this is supposed to do).

Is there any way around this (both the "hanging" problem and building a bigger texture map)? I find the final texture is not a high enough resolution.

downgradedto previous vertion and no more problems...
Title: Re: parametrezing texture atlas freez at 70%
Post by: cbnewham on January 07, 2014, 03:44:51 PM
Which one?

Currently I'm on the latest (v1 build 1795).

Are the previous versions available on this website? I haven't looked yet, but I guess they must be.
Title: Re: parametrezing texture atlas freez at 70%
Post by: cbnewham on January 07, 2014, 05:59:16 PM
Unsetting colour correction makes no difference - it still takes a long time...

I installed 0.9 and, after much messing around to export everything from 1.0 and import it back into the older version, it works very well. Only 10 to 15 minutes to generate the textures.

Please fix this in 1.0 when you get a chance - it's obviously a bug.

Title: Re: parametrezing texture atlas freez at 70%
Post by: human-engine on January 07, 2014, 06:21:01 PM
I also got this problem (stuck at 70% during texture phase). It was stuck for 8 hours, before I cancelled it, but it got to 70% in minutes. Same mesh was used with the previous build of PS, and texturing worked fine (took 10 minutes or so). Next time it happens I will save the logs / screenshots.
Vincent
Title: Re: parametrezing texture atlas freez at 70%
Post by: Wishgranter on January 07, 2014, 06:56:24 PM
how much triangles have the meshes ?
Title: Re: parametrezing texture atlas freez at 70%
Post by: cbnewham on January 07, 2014, 07:03:39 PM
300,000 faces in my case.
Title: Re: parametrezing texture atlas freez at 70%
Post by: cbnewham on January 08, 2014, 12:19:08 AM
Further to this:

Using the same data, I generated a dense point cloud at medium quality and then a 500,000 face model (the previous dense cloud was generated on high and then the model with 300,000 faces).

This time it textured in very little time - instead of leaping up to 70% in 30 seconds and sticking there, it took a couple of minutes to get to 70 and then continued on past the parameterisation and on to the blending stage.

As someone else noted, it appears to be related to how the quality of the dense point cloud is set. Anything above Medium and texture generation grinds to a halt at 70%.
Title: Re: parametrezing texture atlas freez at 70%
Post by: Alexey Pasumansky on January 08, 2014, 01:37:39 AM
Hello all,

We are woring on this problem now and are planning to release the update with the fix in the end of January.

In the current version due to higher geometry sharpness the texture atlas has several times higher number of texture charts (compared to the version 0.9.1), thus resulting in the lower texture quality or even in very long processing time with completely unacceptable result (>25000 texture charts).

Currently we can only recommend to use older release for texturing or apply smothing to the model and/or import manually created UV map.
Title: Re: parametrezing texture atlas freez at 70%
Post by: cbnewham on January 08, 2014, 12:07:33 PM
Brilliant.

BTW, the new texturing is a lot better than in the old versions. I found quite a few problems with 0.9's texturing and I've gone back to 1.0 which produces a lovely result. I can live with medium resolution models and lower texture detail for now. I look forward to the fix!

Title: Re: parametrezing texture atlas freez at 70%
Post by: alexb on January 08, 2014, 12:47:24 PM
V1.0.0.1742 haven't got this probleme it apeared in 1795 (not the year ;D )
Title: Re: parametrezing texture atlas freez at 70%
Post by: Walter Volkmann on January 09, 2014, 07:52:50 PM
Where can one download this version? Currently you can only get the 1795 version from agisoft.ru. And how can I get hold of an older version?
Title: Re: parametrezing texture atlas freez at 70%
Post by: Alexey Pasumansky on January 21, 2014, 06:53:25 PM
Hello all,

We have released the updated version.

Please check if the texture generation result is fine now. However, please note that you need to rebuild mesh in the new release prior to the texture generation. Old dense cloud can be used for the mesh generation.
Title: Re: parametrezing texture atlas freez at 70%
Post by: alexb on January 22, 2014, 01:27:20 PM
fixed the problem for me Alexey !
Title: Re: parametrezing texture atlas freez at 70%
Post by: Walter Volkmann on January 30, 2014, 07:32:07 PM
I have a rather large dense point cloud and made a mesh with the latest version. When generating texture I get the 70% freeze again! Any ideas of how to overcome or what the limits in number of points/faces are?
Title: Re: parametrezing texture atlas freez at 70%
Post by: Aaron Curtis on March 03, 2017, 11:07:07 PM
Me too! Freeze at 85% done during "blending textures." App starts behaving weirdly -- it is making itself full screen and then windowed every few seconds!? It will just sit here for hours with no cpu use. Come on guys, fix this bug, it's been months!
Title: Re: parametrezing texture atlas freez at 70%
Post by: Alexey Pasumansky on March 03, 2017, 11:11:34 PM
Hello foobarbecue,

The original issue discussed in this thread has been fixed three years ago.

If you have any similar problem, please specify the following:
- PhotoScan version you are using,
- hardware specifications (CPU, GPU, RAM, OS version),
- project details: number and resolution of images, face count of the mesh,
- processing settings used for the texture generation stage,
- full processing log related to the operation (you can redirect it to file using corresonding option in the Preferences window and re-start the operation, if the problem can be easily reproduced).