Skip to main content

Coming Soon!

Project description

# MedNerf with BoneMet

Training Med-Nerf with BoneMet data

See the mednerf repository for more specific details and instructions on using the medNerf model.

To train mednerf with BoneMet data, first download training data here. To prepare the data for training, crop each image to a 128x128 .png image that contains each tibia. Store all images in mednerf/graf-main/data/knee_xrays. In the graf-main directory, execute this command:

python train.py configs/knee.yaml

We reccomend training to 100,000 iterations.

Generating a reconstruction with Med-Nerf

After training the model you can generate 3D-aware CT projections with a given X-Ray. First, in render_xray_G.py, change the file path parameter in variable target_xray in line 158 to the path of the desired x-ray. Create a reconstruction with the command:

python render_xray_G.py configs/knee.yaml / --save_dir="./renderings" / --model model_best.pt / --save_every 25 / --psnr_stop 25

To change the quality of the reconstruction, increase the psnr threshold.

The reconstruction output will be in the form of a .mp4 located in graf-main/results/knee_all_360/renderings.

Acknowledgements

This code orginates from the mednerf repository. Thank you to the creators who worked hard on this model!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bonemet-0.0.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

BoneMet-0.0.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file bonemet-0.0.2.tar.gz.

File metadata

  • Download URL: bonemet-0.0.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for bonemet-0.0.2.tar.gz
Algorithm Hash digest
SHA256 210b446cb12ec73dd256016eef6df714cc1433f512394efc8c8205bfbf9aa5f6
MD5 0988a80c64e64e0e05591465a80c55a5
BLAKE2b-256 421cb26b8302b82778830ac6746805ca11e17a97653ed6fd83584458130c88b3

See more details on using hashes here.

File details

Details for the file BoneMet-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: BoneMet-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for BoneMet-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 124061f3109ef95562eb6e45e3168590181321af5d6040863dc45f0e39a19b11
MD5 6173b379d271f4169a736d340530e18e
BLAKE2b-256 99ca5600df96a0952570293a4c66443fc6257959233091d361a80349c2255bdf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page