cars icon indicating copy to clipboard operation
cars copied to clipboard

Data Preparation crash using CARS Docker

Open GuDesp opened this issue 2 years ago • 6 comments

Hello

I installed the CARS Docker and run it with the Cairo sample successfully. The result is nice so I tryed to test it with my hown Pleiades data. Unfortunatly the pipeline crashed during preparation step, just after the matching was performed. The log says "lowres_dsm" is None, but I do filled a SRTM file in the config file. Any ideas would be welcome Thank you Guillaume

(base) gdespine@ubuntu-vpo-001:~/projects/3_CARS/GUD-Tests$ docker run -v /home/gdespine/projects/3_CARS/GUD-Tests/Singapour:/data cnes/cars prepare -i /data/Config.json -o /data/1_prepareOutdir WARNING: You are using pip version 21.2.4; however, version 22.1.2 is available. You should consider upgrading via the '/cars/venv/bin/python -m pip install --upgrade pip' command. Computing epipolar grids ...: 100% [**************************************************] (2s) Performing matching ...: 100%|██████████| 3500/3500 [24:31<00:00, 2.38it/s] 22-06-29 10:35:29 :: ERROR :: CARS terminated with following error Traceback (most recent call last): File "/cars/cars/cars.py", line 746, in main_cli run_prepare(args, dry_run) File "/cars/cars/cars.py", line 546, in run_prepare prepare.run( File "/cars/cars/pipelines/prepare.py", line 813, in run lowres_dsm.to_netcdf(lowres_dsm_file) AttributeError: 'NoneType' object has no attribute 'to_netcdf' 2022-06-29 10:19:56 (WARNING) EpipolarSparseMatching: Warning: tile ignored because of the following error itk::ExceptionObject (0x7f4e806bd9a0) Location: "unknown" File: /usr/include/ITK-4.13/itkEuclideanDistanceMetric.hxx Line: 64 Description: itk::ERROR: EuclideanDistanceMetric(0x7f4e800447e0): The two measurement vectors have unequal size (128 and 2148075616)

2022-06-29 10:24:28 (WARNING) EpipolarSparseMatching: Warning: tile ignored because of the following error itk::ExceptionObject (0x7f4e80483b40) Location: "unknown" File: /usr/include/ITK-4.13/itkEuclideanDistanceMetric.hxx Line: 64 Description: itk::ERROR: EuclideanDistanceMetric(0x7f4e80789420): The two measurement vectors have unequal size (128 and 2147816496)

2022-06-29 10:26:42 (WARNING) EpipolarSparseMatching: Warning: tile ignored because of the following error itk::ExceptionObject (0x7f4e80410d10) Location: "unknown" File: /usr/include/ITK-4.13/itkEuclideanDistanceMetric.hxx Line: 64 Description: itk::ERROR: EuclideanDistanceMetric(0x7f4e81a8c870): The two measurement vectors have unequal size (128 and 2148141904)

2022-06-29 10:31:32 (WARNING) EpipolarSparseMatching: Warning: tile ignored because of the following error itk::ExceptionObject (0x7f4e809815e0) Location: "unknown" File: /usr/include/ITK-4.13/itkEuclideanDistanceMetric.hxx Line: 64 Description: itk::ERROR: EuclideanDistanceMetric(0x7f4e8076c1b0): The two measurement vectors have unequal size (128 and 2154490416)

2022-06-29 10:32:00 (WARNING) EpipolarSparseMatching: Warning: tile ignored because of the following error itk::ExceptionObject (0x7f4e809815e0) Location: "unknown" File: /usr/include/ITK-4.13/itkEuclideanDistanceMetric.hxx Line: 64 Description: itk::ERROR: EuclideanDistanceMetric(0x7f4e8059b570): The two measurement vectors have unequal size (128 and 2147790544)

2022-06-29 10:33:54 (WARNING) EpipolarSparseMatching: Warning: tile ignored because of the following error itk::ExceptionObject (0x7f4e807598c0) Location: "unknown" File: /usr/include/ITK-4.13/itkEuclideanDistanceMetric.hxx Line: 64 Description: itk::ERROR: EuclideanDistanceMetric(0x7f4e8054c790): The two measurement vectors have unequal size (128 and 2147485904)

2022-06-29 10:11:47 (WARNING) EpipolarSparseMatching: Warning: tile ignored because of the following error itk::ExceptionObject (0x7f668053b370) Location: "unknown" File: /usr/include/ITK-4.13/itkEuclideanDistanceMetric.hxx Line: 64 Description: itk::ERROR: EuclideanDistanceMetric(0x7f6680418a40): The two measurement vectors have unequal size (128 and 2152952128)

2022-06-29 10:18:15 (WARNING) EpipolarSparseMatching: Warning: tile ignored because of the following error itk::ExceptionObject (0x7f66807eca20) Location: "unknown" File: /usr/include/ITK-4.13/itkEuclideanDistanceMetric.hxx Line: 64 Description: itk::ERROR: EuclideanDistanceMetric(0x7f668040ff20): The two measurement vectors have unequal size (128 and 2148097600)

2022-06-29 10:18:52 (WARNING) EpipolarSparseMatching: Warning: tile ignored because of the following error itk::ExceptionObject (0x7f6680418be0) Location: "unknown" File: /usr/include/ITK-4.13/itkEuclideanDistanceMetric.hxx Line: 64 Description: itk::ERROR: EuclideanDistanceMetric(0x7f6680584b40): The two measurement vectors have unequal size (128 and 2153015008)

GuDesp avatar Jun 29 '22 15:06 GuDesp

Hello @GuDesp, thanks for reporting the problem here. Please could you send us your Config.json file and your data ? Thank you in advance for your answer

dyoussef avatar Jul 08 '22 14:07 dyoussef

Hello Sorry for delay, I was on vacation for last three weeks. Here is the requested data : https://ftp.siradel.com/?ShareToken=1C7A3BEFACBB410885B1B4D2BA9E94BB1F5C6062 (link expiration september 31) Thank you Guillaume

GuDesp avatar Jul 25 '22 15:07 GuDesp

Hello @GuDesp, sorry for delay too. I found the solution : it seems that the Orfeo Toolbox that we use for read images does not manage to read the model. To avoid this, you can use Orfeo Toobox on DIM.XML to extract the band (I see you use the first channel to extract DEM) (available in cars docker image) : otbcli_ExtractROI -in IMG_PHR1B_PMS_001/DIM_PHR1B_PMS_201410010333168_SEN_1898108101-001.XML -out CARS_INPUTS/img1.tif uint16 -cl Channel1 otbcli_ExtractROI -in IMG_PHR1B_PMS_002/DIM_PHR1B_PMS_201410010333419_SEN_1898108101-002.XML -out CARS_INPUTS/img2.tif uint16 -cl Channel1 Then, you can launch CARS on img1.tif and img2.tif (without forget .geom which contains geometrical model).

Regards, David

dyoussef avatar Aug 10 '22 13:08 dyoussef

PS : Here's the screenshot of the result :

image

dyoussef avatar Aug 10 '22 13:08 dyoussef

Hello David Thank you for your answer and for the recommandations. I'll try it very soon and let you know about the results Best regards Guillaume

GuDesp avatar Aug 16 '22 07:08 GuDesp

Hello @GuDesp, have you tried with the recommendations ? Can we close the issue ? Best regard, David

dyoussef avatar Sep 30 '22 08:09 dyoussef

I close this issue : @GuDesp : if you don't manage to obtain your DSM, you can re open it. Best regard, David

dyoussef avatar Oct 17 '22 12:10 dyoussef

Hello David Thank you for this info The process worked fine now Best regard Guillaume

Envoyé à partir de Courrierhttps://go.microsoft.com/fwlink/?LinkId=550986 pour Windows

De : David @.> Envoyé le :lundi 17 octobre 2022 14:14 À : @.> Cc : DESPINE Guillaume @.>; @.> Objet :⚠️ Re: [CNES/cars] Data Preparation crash using CARS Docker (Issue #11)

I close this issue : @GuDesphttps://urldefense.com/v3/__https:/github.com/GuDesp__;!!La4veWw!yhlQmLnrL7TygAbeqolbmJx1bbNnKkjgJxA-PIGzC6eIqaXiWNmhGxrl4Nj_yUDSjyz9SEoSVUBy1oUu0Ke2qZCh$ : if you don't manage to obtain your DSM, you can re open it. Best regard, David

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/CNES/cars/issues/11*issuecomment-1280762974__;Iw!!La4veWw!yhlQmLnrL7TygAbeqolbmJx1bbNnKkjgJxA-PIGzC6eIqaXiWNmhGxrl4Nj_yUDSjyz9SEoSVUBy1oUu0Jhe-hWy$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AZBCTD4Y7ULKFPRLBNNZVNLWDU7J7ANCNFSM52GD3VRQ__;!!La4veWw!yhlQmLnrL7TygAbeqolbmJx1bbNnKkjgJxA-PIGzC6eIqaXiWNmhGxrl4Nj_yUDSjyz9SEoSVUBy1oUu0NNYIBQd$. You are receiving this because you were mentioned.Message ID: @.***>

⚠️ This symbol is automatically added to emails originating from outside of the organization. Be extra careful with hyperlinks and attachments.

ENGIE Mail Disclaimer: http://www.engie.com/disclaimer/

GuDesp avatar Oct 17 '22 13:10 GuDesp