Skip to main content

eLoRA: Efficient Rank Allocation for Budget-Constrained Fine-Tuning 🐍🚀🎉🦕

Project description

eLoRA is a Python package for efficient fine-tuning.

Installation

To install the package, use pip:

pip install elora

Usage

To use the package, import it in your Python code:

import elora

medviz.layered_plot(image_path="dataset/1-1.nii", mask_paths=["dataset/small_bowel.nii", "dataset/1-1-label.nii"], mask_colors=["red", "yellow"], title="Layered Plot")

The layered_plot function creates a layered plot of an image and one or more masks. The masks are overlaid on top of the image using the specified colors. The resulting plot can be used to visualize the location of structures or regions of interest in the image.

import medviz

medviz.gif(
    image_path="dataset/1-1.nii",
    mask_paths=[
        "dataset/small_bowel.nii",
        "dataset/1-1-label.nii",
        "dataset/vertebrae_L3.nii.gz",
        "dataset/vertebrae_L4.nii.gz",
        "dataset/vertebrae_L5.nii.gz",
    ],
    mask_colors=["red", "yellow", "green", "blue", "purple"],
    title="Expert Annotations",
    interval=70,
    start_slice=30,
    end_slice=130,
    save_path="animation.gif",
)

The gif function creates an animated GIF of an image and one or more masks. The masks are overlaid on top of the image using the specified colors. The resulting GIF can be used to visualize the location of structures or regions of interest in the image.

GitHub repository: [https://github.com/mohsenhariri/eLoRA](https://github.com/mohsenhariri/eLoRA)

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

elora-0.0.1.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

elora-0.0.1-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file elora-0.0.1.tar.gz.

File metadata

  • Download URL: elora-0.0.1.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for elora-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1a9b68736f40de1652686ee96290dd195460fe47946a2805a78c12f4811f2d58
MD5 c980491fd2a6c22fedc1043c371db395
BLAKE2b-256 f8ca1db66da9c281974678fbe9d181ae133248dac98a73e8fb7755570d275d93

See more details on using hashes here.

File details

Details for the file elora-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: elora-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for elora-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 051fad59f989f7c41626d27bccb8566d0f7800ddbc6e3995cccbbf51ebdfe052
MD5 17c94bd01736cf7bbc7cd7f150abfdb6
BLAKE2b-256 3c6decaef789860eb15b0c07083d8567741ee02f9b52f31f3d6fbf63ff56ac26

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