Hi Vivek,
Thanks again for sharing your work. I am trying to use your workflow for lateral pelvic X-rays but I face some issues. The model works 50% of the time when I use a random lateral DiffDRR as input (see GIF 1). I trained the model with a batch size of 2 images (due to memory limitations) and used a random offset with standard deviation of 40 for translations and 0.1 for the rotations.
When I use a real lateral X-ray as input the model never finds the right position of the X-ray source (See GIF 2). We don’t know the actual position of X-ray source but in GIF 3 we can see that the synthetic X-ray looks different compared to the actual X-ray (this GIF switches between synthethic and real X-ray).
Do you maybe have some tips to make my model work sufficiently? Would adjusting the learning rate help? Or should I use better preprocessing of the real X-ray image? Our lateral X-rays are of low quality because we use a mobile C-arm (Figure 1). For preprocessing we currently only use “img = exposure.equalize_adapthist(img/np.max(img))” Do you think further preprocessing is required? If so, do you have tips regarding the preprocessing?
Your help is deeply appreciated. Thanks in advance.
Kind regards,
Nick

GIF 1: Applying model to random generated synthethic X-ray

GIF 2: Applying model to real X-ray (reference X-ray source is not the actual position of the X-ray source but is just a lateral X-ray)

GIF 3: Synthethic and real X-ray (klik on GIF for better resolution)

Figure 1: Preprocessed lateral X-ray
Hi Vivek,
Thanks again for sharing your work. I am trying to use your workflow for lateral pelvic X-rays but I face some issues. The model works 50% of the time when I use a random lateral DiffDRR as input (see GIF 1). I trained the model with a batch size of 2 images (due to memory limitations) and used a random offset with standard deviation of 40 for translations and 0.1 for the rotations.
When I use a real lateral X-ray as input the model never finds the right position of the X-ray source (See GIF 2). We don’t know the actual position of X-ray source but in GIF 3 we can see that the synthetic X-ray looks different compared to the actual X-ray (this GIF switches between synthethic and real X-ray).
Do you maybe have some tips to make my model work sufficiently? Would adjusting the learning rate help? Or should I use better preprocessing of the real X-ray image? Our lateral X-rays are of low quality because we use a mobile C-arm (Figure 1). For preprocessing we currently only use “img = exposure.equalize_adapthist(img/np.max(img))” Do you think further preprocessing is required? If so, do you have tips regarding the preprocessing?
Your help is deeply appreciated. Thanks in advance.
Kind regards,
Nick
GIF 1: Applying model to random generated synthethic X-ray
GIF 2: Applying model to real X-ray (reference X-ray source is not the actual position of the X-ray source but is just a lateral X-ray)
GIF 3: Synthethic and real X-ray (klik on GIF for better resolution)