Skip to main content

Add your description here

Project description

🚀 DeepCAD RT Runners

Welcome to DeepCAD RT Runners! This project is a small UV-based solution that bundles all necessary dependencies for DeepCAD 1.2.0, along with convenient command-line scripts for configuration, training and prediction.

Key Features:

  • 🔧 No manual Python environment setup required (just uv).
  • 🖥️ Tested on Windows 11 and Debian Linux with CUDA-compatible GPUs.
  • 📊 Seamless training and prediction workflows for denoising .tif movie files.

📋 Prerequisites

Before diving in, ensure you have:

  • A system with a CUDA-compatible GPU (recommended for optimal performance).
  • uv installed.
  • Access to .tif movie files for training and testing.

🛠️ Installation

No installation needed! The project uses uvx to run commands directly from the GitHub repository. Your Python environment will be created and cached automatically.


📖 Usage

Follow these steps to train and test your models. Each step includes detailed instructions and examples.

1. 📝 Create Configuration Files

Generate local configuration files for training and testing.

Run the following command in your terminal:

uvx --from deepcadrt-run deepcadrt-config

This creates train_config.json and test_config.json in your current directory. Customize these files as needed (e.g., adjust parameters like patch size, number of epochs or learning rate).

Example Output:

  • train_config.json: Default training settings.
  • test_config.json: Default testing settings.

2. 🎯 Train Your Model

Prepare a folder containing your .tif movie files (e.g., data/my_movies/).

Edit train_config.json to match your requirements (leave dataset_path unchanged).

Run the training command:

uvx --from deepcadrt-run deepcadrt-train "mymovies" -c train_config.json

This will:

  • Train a DeepCAD model on your data.
  • Create a models/ folder with a subfolder named like mymovies_202310011155 (based on your data folder and current date).

Tips:

  • Ensure your .tif files are properly formatted (e.g., 3D stacks).
  • The patch size in the time dimension is smaller than the movie length
  • Monitor GPU usage during training for performance.

3. 🔮 Predict and Denoise

Use your trained model to denoise new or existing data.

Edit test_config.json as needed (leave dataset_path and denoise_model unchanged).

Run the prediction command:

uvx --from deepcadrt-run deepcadrt-predict mymovies/ models/mymovies_202310011155 -c test_config.json

This will:

  • Apply denoising to your movies.
  • Save results in a results/ folder with a subfolder for your output.

Example:

  • Input: Noisy .tif movies.
  • Output: Denoised versions in results/. By default the model from the latest epoch is used.

❓ Troubleshooting

  • CUDA Issues: Ensure your GPU drivers are up-to-date and compatible.
  • Memory Errors: Reduce patch size or train_datasets_size in config files for large datasets.
  • Command Not Found: Verify uv is installed and in your PATH.
  • For more help, check the DeepCAD documentation or open an issue on this repo.

🤝 Contributing

We welcome contributions! Feel free to submit pull requests or report bugs via the GitHub repository.


📄 License

This project is licensed under MIT License. See the LICENSE file for details.

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

deepcadrt_run-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepcadrt_run-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file deepcadrt_run-0.1.0.tar.gz.

File metadata

  • Download URL: deepcadrt_run-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for deepcadrt_run-0.1.0.tar.gz
Algorithm Hash digest
SHA256 88dfcee65f38ac8213cdc83d572b0f56300407019ed4a4c9d44f08dc86b9f7d9
MD5 0c8d3481111fba5a92b3558878ffd8f0
BLAKE2b-256 dc97bd895042c470d9c1dc0929651b123fc008ba67036439d1681ac5e3a0b7be

See more details on using hashes here.

File details

Details for the file deepcadrt_run-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: deepcadrt_run-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for deepcadrt_run-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d0339b694c5061c327abce844facd95c7d3776e11dba19f93fcd1f53b28f67d
MD5 559baa2b7e8283766a7f8446baa24749
BLAKE2b-256 ffb9edcb37462c6101962faa7e0b6c3a63ef505c31e211fc2f2e9c99665979a8

See more details on using hashes here.

Supported by

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