error running stereo on HIRISE

47 views
Skip to first unread message

Mauro S

unread,
Jun 28, 2022, 1:37:29 PMJun 28
to Ames Stereo Pipeline Support

Hello,

I get this error when trying to use stereo:
(asp) pelinor@pelinor:~/stereoS$ stereo_pprc ESP_012438_1795_RED.map.cub ESP_012728_1795_RED.map.cub output_prefix/run

[ 2022-Jun-28 11:27:56 ] : Stage 0 --> PREPROCESSING
    --> Setting number of processing threads to: 4
Using stereo file ./stereo.default.
Error parsing configuration file:
unrecognised option

Any help is welcome
stereo.default

Mauro S

unread,
Jun 28, 2022, 1:41:01 PMJun 28
to Ames Stereo Pipeline Support
another attempt using a response to a similar error:

(asp) pelinor@pelinor:~/stereoS$ stereo ESP_012438_1795_RED.map.cub ESP_012728_1795_RED.map.cub output_prefix/run -s stereo.default
    --> Setting number of processing threads to: 8
Using stereo file stereo.default.

Error parsing configuration file:
unrecognised option


None
Traceback (most recent call last):
  File "/home/pelinor/miniconda3/envs/asp/bin/stereo", line 124, in <module>
    settings = run_and_parse_output("stereo_parse", args, sep, opt.verbose)
  File "/home/pelinor/miniconda3/envs/asp/libexec/asp_system_utils.py", line 294, in run_and_parse_output
    raise Exception('Failed executing: ' + " ".join(call))
Exception: Failed executing: /home/pelinor/miniconda3/envs/asp/bin/stereo_parse ESP_012438_1795_RED.map.cub ESP_012728_1795_RED.map.cub output_prefix/run --threads 8 --corr-seed-mode 1 --stereo-file stereo.default
(asp) pelinor@pelinor:~/stereoS$

Alexandrov, Oleg (ARC-TI)[KBR Wyle Services, LLC]

unread,
Jun 28, 2022, 1:44:10 PMJun 28
to Mauro S, Ames Stereo Pipeline Support
I think your error is because your stereo.default has all lines shifted right with a lot of space on the left. 

Try to use an original stereo.default, and see if it works. Then, when you edit it, one should not put spaces in front of the lines. 

From: ames-stereo-pi...@googlegroups.com <ames-stereo-pi...@googlegroups.com> on behalf of Mauro S <mgs...@gmail.com>
Sent: Tuesday, June 28, 2022 10:37 AM
To: Ames Stereo Pipeline Support <ames-stereo-pi...@googlegroups.com>
Subject: [EXTERNAL] error running stereo on HIRISE
 
--
You received this message because you are subscribed to the Google Groups "Ames Stereo Pipeline Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ames-stereo-pipeline...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ames-stereo-pipeline-support/9ee8c32b-317b-429f-ad54-9474c7518e6bn%40googlegroups.com.

Mauro S

unread,
Jun 28, 2022, 1:55:38 PMJun 28
to Ames Stereo Pipeline Support
solved! Thank you for your time

sorry for this silly mistake
On Tuesday, 28 June 2022 at 14:37:29 UTC-3 Mauro S wrote:
Message has been deleted

Beyer, Ross A. (ARC-SST)[SETI INSTITUTE]

unread,
Jun 28, 2022, 2:25:08 PMJun 28
to Mauro S, Ames Stereo Pipeline Support

Mauro,

 

Does your native OS use commas as the decimal separator?

 

If so, then the last entry in this issue may help you:

https://github.com/NeoGeographyToolkit/StereoPipeline/issues/275#issuecomment-632247692

 

-- 

Ross A. Beyer

http://RossBeyer.net/science/

 


Date: Tuesday, June 28, 2022 at 11:22 AM
To: Ames Stereo Pipeline Support <ames-stereo-pi...@googlegroups.com>

Subject: [EXTERNAL] Re: error running stereo on HIRISE

 

well, was running smooth until this error came up:
 2022-Jun-28 12:09:46 ] : Stage 1 --> CORRELATION

[ 2022-Jun-28 12:09:46 ] : Stage 1 --> LOW-RESOLUTION CORRELATION
No IP file found, computing IP now.
        * Detecting interest points.
    --> Matching interest points using homography.
        Looking for IP in left image...
        Using 50 interest points per tile (1024^2 px).
        Detecting IP
        Removing IP near nodata with radius 4
        Building descriptors
        Found interest points: 25478
        Recording interest points to file: result/output-L.vwip
        Looking for IP in right image...
        Using 50 interest points per tile (1024^2 px).
        Detecting IP
        Removing IP near nodata with radius 4
        Building descriptors
        Found interest points: 42560
        Recording interest points to file: result/output-R.vwip
    --> Adjusted uniqueness threshold: 0.8
           Matching: [***************************************************.] 99%
        Matched points: 2839
        Inlier threshold:                     200
        RANSAC iterations:                    100
        * Writing match file: result/output-L__R.match
    --> Using interest points to determine search window.
        * Loading match file: result/output-L__R.match
Loading camera model: ESP_012438_1795_RED.map.cub


Error: **ERROR** Unable to initialize camera model in Camera Factory.
**ERROR** Failed to convert string [1,79769313486232e+308] to a double.
Stereo step  failed

--

You received this message because you are subscribed to the Google Groups "Ames Stereo Pipeline Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ames-stereo-pipeline...@googlegroups.com.

Oleg Alexandrov

unread,
Jun 28, 2022, 3:20:59 PMJun 28
to Mauro S, Ames Stereo Pipeline Support
Does it work for you to use the original stereo.default? If you make any modifications, can you ensure the file format does not change? 

I will suggest you edit stereo.default very carefully, and make a copy after each change. That way you can find which line causes problems. See here for the list of available options: https://stereopipeline.readthedocs.io/en/latest/stereodefault.html

--
You received this message because you are subscribed to the Google Groups "Ames Stereo Pipeline Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ames-stereo-pipeline...@googlegroups.com.

Oleg Alexandrov

unread,
Jun 28, 2022, 3:23:11 PMJun 28
to Ames Stereo Pipeline Support
Sorry,  I think I responded to an old issue already solved by now. (It showed as new in my email somehow.)

Mauro S

unread,
Jun 29, 2022, 8:22:34 AMJun 29
to Ames Stereo Pipeline Support
Thank you Ross and Oleg,

yes apparently was solved and is running, lessons learned:
-do not use spaces or tabs in the stereo.default.
-set up decimal symbol properly by:
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

thanks for your help

Oleg Alexandrov

unread,
Jul 11, 2022, 6:36:11 PMJul 11
to Ames Stereo Pipeline Support
I made ASP not throw an error when stereo.default has spaces before settings. 

I also put a fix for the crash:

**ERROR** Failed to convert string [1,79769313486232e+308] to a double.

Strictly speaking, this is an ISIS error. Somewhere deep in its bowels it tries to cook up a big number, and makes use of the decimal separator on user's platform. That is most likely bad programming, but I could not trace its origin. It is somewhere in ShapeModelFactory or its callers.

The fix is to silently overwrite user's language preference for any ASP program to US English, while not affecting anything else on the user system. 
Reply all
Reply to author
Forward
0 new messages