Downloads · 30 days
0
aconesac/FusGAN
FusGAN is a machine learning model from aconesac. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This project utilizes Generative Adversarial Networks (GANs) to generate ultrasound simulations from CT slices and a transducer mask. By leveraging GANs, the system can produce realistic ultrasound intensity maps give…
Downloads · 30 days
0
Access
Public
Updated Aug 21, 2025
Repo size
458 KB
Likes
0
Public
Click a slice to open those files.
.png506 KB · 81%
From the Hugging Face model README
This project utilizes Generative Adversarial Networks (GANs) to generate ultrasound simulations from CT slices and a transducer mask. By leveraging GANs, the system can produce realistic ultrasound intensity maps given a CT scan and a transducer mask input.

Clone the Repository:
git clone https://github.com/aconesac/fusGAN.git
cd fusGAN
Install Dependencies:
It is recommended to use a virtual environment. Install the required Python packages with:
pip install -r requirements.txt
Make sure you have the necessary libraries for GANs and image processing, such as TensorFlow, NumPy, scikit-learn.
Prepare Your Data:
data/ct_slices and data/tr_masks directories, respectively. Place the output simulations for training in data/pi_maps_.Train the GAN:
python train_gan.py --ct_data_path=data/ct_slices --mask_data_path=data/masks --sim_path=data/pii
This command trains the GAN model using your CT and mask data and saves the trained model in the models/ directory.
Generate Ultrasound Simulations:
python generateSimulation.py --ct_image_path=data/ct_slices/example_ct_slice.png --mask_path=data/masks/example_mask.png --model_path=models/trained_gan_model.h5 --output_path=results/
This command generates an ultrasound simulation for a given CT slice and mask, saving the result in the results/ directory.
data/ct_slices/example_ct_slice.png, data/masks/example_mask.png, data/pii/sim_out.pngresults/simulated_ultrasound.png
If you'd like to contribute to this project, please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or issues, please contact Agustin Conesa.