"Truncated or oversized response headers" when using monai CropForegroundd

Hello,

I trying a two-stage segmentation pipeline where the first model predicts the area of the lung bounding box, followed by the second stage segmenting vessels in the bounding box.

I use the monai CropForegroundd function to crop the CT volume to the area of the bounding box. However after the cropping step, the pipeline stops with the following message:

[2021-12-07 06:14:35] Truncated or oversized response headers received from daemon process ‘AIAA_V1’: /opt/nvidia/medical/aiaa/www/api_v1.wsgi

Thank you for your help.

The configuration file is attached here:

“pre_transforms”: [
{
“name”: “monai.transforms.LoadImaged”,
“args”: {
“keys”: “image”
}
},
{
“name”: “monai.transforms.CropForegroundd”,
“args”: {
“keys”: [“image”],
“source_key”: “pred_lung”
}
},
{
“name”: “monai.transforms.AddChanneld”,
“args”: {
“keys”: “image”
}
},

Hi,

There is a possibility that your system is out of memory.
Can you check your memory usage?
Or you can try with a small image to see if that works.