You are not logged in.



#26 2009-12-10 16:56:10

[bo]
community overseer
From: Bulgaria
Registered: 2006-05-05
Posts: 1830

Re: Smartblend crashes, situation sum up

Alex will have to answer that in more detail, but the way I see it, no matter how much memory you have, it'll always get fragmented, eventually. The bigger amount just raises the chance of having a big enough block of continuous RAM.


Some of my panoramas, posted in the Autopano Pro flickr group.

Offline

 

#27 2009-12-10 19:18:52

JohnM
Member
Registered: 2006-10-31
Posts: 268

Re: Smartblend crashes, situation sum up

Looking back on my crash history it all makes sense to me now.  Sometimes a que of one went fine, but a cue of 3 renders crashed with usually only one or two files completed.

So until a v2 is out, one might  only render one file at the time one a fresh boot. ( Maybe its possible to save some ram fragmentation by loading the batch script directly one a fresh boot )

If ram fragmentation is random, maybe it will help to turn off some window services ?

Offline

 

#28 2010-01-26 20:41:46

hankkarl
Member
From: Connecticut, USA
Registered: 2006-02-21
Posts: 1947
Website

Re: Smartblend crashes, situation sum up

AlexandreJ wrote:

The smartblend issue is a tricky one. We know why but it's really hard to fix. Let's explain it in detail.

How smartblend works :
* take image 1 and 2, calculate the transition seams, do the blending. You'll get new blended image 1_2
* then SB blends the 1_2 with image 3 and you'll get image 1_2_3
* etc for all images

Does Smartblend give more weight to image 3 than to 1 and 2, or does it weight each subsequent image, like this:

image 1_2 =  1/2 * image 1 + 1/2 * image 2

image 1_2_3 = 2/3 * image 1_2 + 1/3 image 3,

image 1_2_3_4 = 3/4 * image 1_2_3 + 1/4 image 4

I know smartblend is not exactly doing this kind of math, but it seems that smartblend should look at all the images and take the one without the tourist (or with the tourist if you wish).  A "dumbed down" version may work by calculating the average value of each pixel (assuming the images are more or less the same brightness) and calculating the standard deviation of each pixel in the composite image.  Then ignore (or use) any single pixel that is outside the standard deviation, or just select the single best pixel for the composite.

Last edited by hankkarl (2010-01-26 20:50:23)

Offline

 

#29 2010-01-27 09:38:03

AlexandreJ
Absolute beginner
From: Challes les eaux, France
Registered: 2005-11-14
Posts: 7631
Website

Re: Smartblend crashes, situation sum up

Today situation about this project :

Part 1 : fixing smartblend memory fragmentation issue

* We are still waiting the feedback of the memory expert. They should have provided us the way to do it one week ago, but no answer yet.
This part is reall not easy but I think that team should be able to make it ( they worked on far bigger project than us ).
* As soon as we have the feedback, we'll work on a 2.0.7 version to release a fix for that ( we'll fix also some other bugs ).

Part 2 : New Smartblend from scratch

This job is making good progress. We have quite finished all the needed algorithms and new memory manager background. In fact, quite everyone here is working
just on that topic. So what has been done so far :
- New memory manager that is working differently : one big allocation at the beginning and everything else is managed ourself. And of course, fragmentation cannot happen with that system.
- New cache system that will be used by the memory manager. You will be able to setup several temp folder, etc.
- Then the rendering engine status : we decided to remove everything and start again from scratch. There were several reason for that : memory management, but also multithreading integration. We want a far better scalability with the number of core.
So, we are currently doing that part. Actually, we are finishing porting the old smartblend engine over this new engine ( BTW : we improved the anti-ghost system ). We should be able to do our first full rendering with that new system soon.
- What's missing ? The HDR integration is also under heavy revamp into this new engine. It will be totally different than the old workflow and I'm sure it will meet your quality criterion.

Offline

 

#30 2010-01-27 11:44:10

geko5766
Member
From: Trier
Registered: 2008-05-21
Posts: 174

Re: Smartblend crashes, situation sum up

Hello ALexandre,

very good nes indeed !! Hope you´ll get anything working pretty soon. I, fro my part, am desperately waitong for the nes HDR functionality. Can´t wait to see it. Just hang on ;-))


Best regards
Georg


The picture is made behind the camera.......

Offline

 

#31 2010-01-27 17:09:41

hankkarl
Member
From: Connecticut, USA
Registered: 2006-02-21
Posts: 1947
Website

Re: Smartblend crashes, situation sum up

Awesome! Great news, and I think this will be a great improvement to APP!

I'm especially looking forward to the new HDR functionality.

Offline

 

#32 2010-02-24 22:50:25

rudolphthomas
New member
From: South Africa
Registered: 2010-02-24
Posts: 3
Website

Re: Smartblend crashes, situation sum up

Any update on the new version of AutoPano 2. I'm back using 1.4.2 very stable never crash but is hectic slow. I can't render 5 shot fisheye scene with 2.0.6 or 2.0.4. I do a lot of huge scale panos and need the speed of 2.0.6 to process. I often find myself doing the detecting and manual image alignment in 2.0.6 then save the project and re-open it in 1.4.2 to do the smartblend render to PSB.

Last edited by rudolphthomas (2010-02-24 22:56:30)


Rudolph Thomas
TIGME.COM / GoVsiti.co.za

Offline

 

#33 2010-02-25 08:49:59

AlexandreJ
Absolute beginner
From: Challes les eaux, France
Registered: 2005-11-14
Posts: 7631
Website

Re: Smartblend crashes, situation sum up

Some good and bad news :
- Bad : Part 1 is still under heavy work. It's really a complicated task and it takes longer than planned ( I'm sure you've noticed that ).
- Good : Part 2, the new smartblend engine is done. Everything is working really good ( and faster ! ). We are quite happy with that new system. We still need on this part to stabilize the code ( even balance between memory usage / disk usage / core used, etc ).

Offline

 

#34 2010-02-25 08:51:16

Klaus
New member
Registered: 2010-02-25
Posts: 2

Re: Smartblend crashes, situation sum up

I'm not an expert concerning memory mapped files under Windows, but...

If you pad all files to the same size, wouldn't that prevent memory fragmentation in your case?

Example: if your largest file is 13MB, make all files 13MB by adding random junk at the end. So for any of these files, regardless when you load them, the addresses will be aligned to the same 13MB blocks.

Right, you will load junk into memory for all files which were originally smaller. But I guess it's not that complicated for the software to ignore the excess junk...

Best regards, Klaus

Offline

 

#35 2010-02-25 09:20:22

[bo]
community overseer
From: Bulgaria
Registered: 2006-05-05
Posts: 1830

Re: Smartblend crashes, situation sum up

Great news! I suppose the new Smartblend uses multiple cores and plenty of memory, instead of putting stress on the HDD?


Some of my panoramas, posted in the Autopano Pro flickr group.

Offline

 

#36 2010-02-25 18:58:46

rudolphthomas
New member
From: South Africa
Registered: 2010-02-24
Posts: 3
Website

Re: Smartblend crashes, situation sum up

AlexandreJ wrote:

Some good and bad news :
- Bad : Part 1 is still under heavy work. It's really a complicated task and it takes longer than planned ( I'm sure you've noticed that ).
- Good : Part 2, the new smartblend engine is done. Everything is working really good ( and faster ! ). We are quite happy with that new system. We still need on this part to stabilize the code ( even balance between memory usage / disk usage / core used, etc ).

Thanks, this is actually good news... the fact that you are willing to give us a status report. ;-)... looking forward... yippee

ps I'll be glad to beta test.!!!

Last edited by rudolphthomas (2010-02-26 06:47:15)


Rudolph Thomas
TIGME.COM / GoVsiti.co.za

Offline

 

#37 2010-02-25 20:05:32

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 8080
Website

Re: Smartblend crashes, situation sum up

AlexandreJ wrote:

Some good and bad news :
- Bad : Part 1 is still under heavy work. It's really a complicated task and it takes longer than planned ( I'm sure you've noticed that ).
- Good : Part 2, the new smartblend engine is done. Everything is working really good ( and faster ! ). We are quite happy with that new system. We still need on this part to stabilize the code ( even balance between memory usage / disk usage / core used, etc ).

Good to hear from you. Looking foward to seeing the fruits of your labours.

Sounds good to me.

Last edited by mediavets (2010-02-25 20:05:48)


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm  lenses, Nodal Ninja 5 Lite, Agno's Mrotator TCSshort
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket
Merlin/Orion panohead + Papywizard on Nokia 770/N800 and Windows XP/2K

Offline

 

#38 2010-03-01 23:39:23

Zab
New member
Registered: 2010-03-01
Posts: 4

Re: Smartblend crashes, situation sum up

Hope the new version will be there soon. I'm trying the program out on W7-premium 64 (on a ssd bootdisk) with 6Gb RAM and a quadcore processor and I'm beginning to feel like a crash test dummy. Followed all advice, but still it happens 9 out of 10 times, runtime errors when rendering is almost finished. I like the set up of the program, but like this it's no use to me, alas.

Offline

 

#39 2010-03-02 13:16:45

[bo]
community overseer
From: Bulgaria
Registered: 2006-05-05
Posts: 1830

Re: Smartblend crashes, situation sum up

What kind of projects do you run, Zab? I'm on W7x64 with 8 and 16 gigs of ram (two separate PCs), Q6600 CPU on both. Crashes are really really rare and mostly related to CP editing.


Some of my panoramas, posted in the Autopano Pro flickr group.

Offline

 

#40 2010-03-02 14:27:22

Zab
New member
Registered: 2010-03-01
Posts: 4

Re: Smartblend crashes, situation sum up

It may have to do with the size of the project  after all. Allthough I only stitch about 10-12 photo's at a time, the images are quite large (on average 1.8 Mb each, jpg, 3700x5600) since they come from a full frame camera. I don't really edit the images before stitching, only slightly while still in RAW mode.
I did some more experimenting this morning and there seems to be some kind of break even point with the Output Size Slider in the render options window set at about 50 procent. Below that the rendering finishes nicely, above it the crashes reappear. So I guess it is a memory issue? I still can plug 2Gb more in.

Offline

 

#41 2010-03-02 15:56:28

[bo]
community overseer
From: Bulgaria
Registered: 2006-05-05
Posts: 1830

Re: Smartblend crashes, situation sum up

It may be a memory issue. Try that out: render the panorama at 100% Output Size, but select Multiband blender, instead of Smartblend and report back.


Some of my panoramas, posted in the Autopano Pro flickr group.

Offline

 

#42 2010-03-02 16:28:08

Zab
New member
Registered: 2010-03-01
Posts: 4

Re: Smartblend crashes, situation sum up

I allready tried the other blender modes, restarted the computer, quit all other programs, still got the same problem.

Offline

 

#43 2010-03-02 16:34:28

[bo]
community overseer
From: Bulgaria
Registered: 2006-05-05
Posts: 1830

Re: Smartblend crashes, situation sum up

Using Multiband you should not have any problems with projects of this size (10 x 20mp jpegs). You wrote the crash comes in the final stages of rendering - that usually signifies the use of Smartblend running out of memory (or more precisely - of defragmented memory).

What output setting you're using - file type? bits? What final file size Autopano computes for the whole panorama?


Some of my panoramas, posted in the Autopano Pro flickr group.

Offline

 

#44 2010-03-02 21:21:07

Zab
New member
Registered: 2010-03-01
Posts: 4

Re: Smartblend crashes, situation sum up

Well, I seem to have solved the problem. My Render settings were actually quite standard; bicubic interpolation, smartblend, 300 dpi jpg, nothing extraordinary. I took a basic 12 pictures panorama and rendered it up to 58% no problem, however as soon as I set the slider to 59% or higher the rendering crashed just before finishing, time and again.
So next I checked the overall settings and I changed two things. First of all I changed the temporary folder and moved it to the same harddisk were my projects are stored (even though the other disk had more than enough free space, about 100 gig). The other setting I changed was the detection quality. I must have set it to high the other day in order to improve the quality, I now changed it back to standard, the default.
After that I rendered the project up to 100 procent without any problem. I guess the detection quality setting caused the problem. I just don't understand why.
Anyway, thanks Bo for trying to help me out.

Last edited by Zab (2010-03-02 23:27:33)

Offline

 

#45 2010-03-03 08:42:07

AlexandreJ
Absolute beginner
From: Challes les eaux, France
Registered: 2005-11-14
Posts: 7631
Website

Re: Smartblend crashes, situation sum up

Zab, the detection quality setting just cannot cause this. This settings just change the number of control point calculated and these are not used during rendering ! We used the result of the calculation done on them, not them. So this is not the explaination.
More interesting is the fact that you changed the temporary folder location. It can explain crashes far more easily if you run out of space on the first location during rendering.

Offline

 

#46 2010-03-08 13:10:02

l_d_allan
Member
Registered: 2010-01-07
Posts: 56

Re: Smartblend crashes, situation sum up

I'd like to be a beta tester if and when you make a version available with the new algorithm. I've been reluctant to purchase from the trial because I've encountered so many BugSplats.

Offline

 

#47 2010-03-21 19:09:29

falconeye
New member
Registered: 2008-08-31
Posts: 2

Re: Smartblend crashes, situation sum up

AlexandreJ wrote:

How smartblend works :
* take image 1 and 2, calculate the transition seams, do the blending. You'll get new blended image 1_2
* then SB blends the 1_2 with image 3 and you'll get image 1_2_3
* etc for all images

Alexandre,

I know you made a new Smartblend version already, so my comment may be useless. Let me make it anyway ... I have two comments to make, actually.


1. The working image (image 1_2_3_..._n) grows really big:

The following procedure would prevent this from hapenning, though:

A. You could first sort the images 1, 2, .. by their upper left coordinate, x first, then y (for example).
B. When computing image 1_2_3_..._n, you could then REMOVE all parts from this image which ONLY have overlap with previous images. The REMOVED parts are first saved as tiles for construction of the final result.
C. As a result, the number of pixels within image 1_2_3_..._n only grows with linear dimension, not square of it. That should resolve all issues and even make it very fast by avoiding swapping altogether.
D. Make a special rule for 360° panos (e.g., don't allow the seam to wrap around).

This makes the existing SmartBlend algorithm perform faster w/o altering its behaviour.


2. Ideas for a better SmartBlend algorithm:

In the above, images 1, 2, 3, ... are all used with equal precedence. In practice however, some images are better than others (e.g., less blur from a freehand shot; or some shots use a longer focal length to embedd interesting detail at higher resolution; or some shots need less perspective correction than others, depending on selected viewing direction).

Therefore, SmartBlend should know about a quality index (contrast + focal length + proximity to image center) and use its quality index alongside other criteria for seam computation. It should start with images with highest quality index too.


Just my two cents.
(I have trouble to use SmartBlend on larger panos too.)

Offline

 

#48 2010-04-02 12:19:26

darkdiver
New member
Registered: 2008-10-08
Posts: 3

Re: Smartblend crashes, situation sum up

just try my first smal pano with the latest Software and on smartblending the autopano crash.

The Hardware i use?

  Modellname:    Mac Pro
  Modell-Identifizierung:    MacPro3,1
  Prozessortyp:    Quad-Core Intel Xeon
  Prozessorgeschwindigkeit:    2,8 GHz
  Anzahl der Prozessoren:    2
  Gesamtzahl der Kerne:    8
  L2-Cache (pro Prozessor):    12 MB
  Speicher:    28 GB
  Busgeschwindigkeit:    1,6 GHz
  Boot-ROM-Version:    MP31.006C.B05
  SMC-Version (System):    1.25f4
  Seriennummer (System):    CK81718EXYL
  Hardware-UUID:    692BAC1A-16BB-586F-B8E5-B4EE2640091D

MAC OS 10.6.3

Regards
Eric

Offline

 

#49 2010-04-21 19:26:55

AlexandreJ
Absolute beginner
From: Challes les eaux, France
Registered: 2005-11-14
Posts: 7631
Website

Re: Smartblend crashes, situation sum up

Some news :

The 2.0.7 is on internal testing ( we expect a public release next week ). It contains only bug fixes plus some new features, expecially the one for smartblend crashes. BTW : don't make me say it will work every times, it won't. You will never be able to render a 20G panorama on a small laptop. Nevertheless, this huge internal study gave us some confidence it should work most of time.
If some people are interested into participating into the private beta, email to me directly with platform details.

---

The next big release will be called 2.5 and contains HDR, a new rendering engine ( totally different from smartblend and because it has been created from scratch, it doesn't have the same flaw as smartblend ), plugin system, manual control point editor, etc. The timeline is quite clear here too with a first public preview last week of may.

Offline

 

#50 2010-04-23 10:21:20

danze_65
Member
Registered: 2009-10-28
Posts: 10

Re: Smartblend crashes, situation sum up

At last! Smartblend has never worked for me. I upgraded to Win7 Ultimate 64bit, but it didn't help a thing. I can't even stitch 3 tiff files from my 5D mk2, it always crashes right in the beginning of smartblend.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson