Practical overview
When it fits
Use it when you have the Carvana-style train, mask and test folders and want the repository's documented Keras training and prediction workflow.
Who it is for
- People reproducing or adapting the documented Carvana image-masking workflow.
- Developers examining a U-Net baseline for image segmentation using labeled images and masks.
Documented uses
- Train a U-Net on Carvana training images and corresponding masks.
- Predict masks for test images and generate a challenge submission.
- Compare implementations at four documented image resolutions.
Requirements & limits
The repository is public and lists an MIT license. Its documented requirements include Keras 2.0 with a TensorFlow backend and supporting Python packages.
- The README specifies a particular input folder layout and PNG training-mask format.
- The multithreaded inference script separates data loading and inference into different threads.
- The README flags memory constraints with large inputs.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Train a U-Net and generate Carvana predictions
Use the documented folder structure and scripts to train a model and create test-image predictions and a submission.
Before you start
- Keras 2.0 with a TensorFlow backend
- sklearn, cv2, tqdm and h5py
- The train, train_masks and test data folders
- GIF training masks converted to PNG
Steps
Place the train, train_masks and test folders inside an input folder.
In train_masks, convert GIF masks to PNG; the README gives
mogrify -format png *.gifas an example.Run the command below to train the model.
python train.pyRun the command below to produce test predictions and a submission.
python test_submit.py
Expected outcome
A trained U-Net model followed by predictions on test data and a generated submission.
Guide limitations
- The guide follows the README's Carvana folder and mask-format instructions.
- The README notes memory constraints with large inputs and says it no longer uses predict_generator.
Use the multithreaded inference script
Run the project's separate-thread inference and data-loading workflow.
Before you start
- The project requirements: Keras 2.0 with a TensorFlow backend, sklearn, cv2, tqdm and h5py
- The project's test data and trained model
Steps
Prepare the test data in the documented input folder structure.
Run
test_submit_multithreaded.pyto try inference with data loading and inference on separate threads.
Expected outcome
The project runs its multithreaded inference and data-loading script to generate test predictions.
Guide limitations
- The README reports a 40% inference-time reduction in its tests; results may differ in other environments.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 21 November 2026
- Original website title
- petrosgk/Kaggle-Carvana-Image-Masking-Challenge · Official homepage title · retained in its source language

