A simple package created to easily apply YOLO-based vesicle detection to fluorescence microscopy images.
Project description
VesicleYOLO
This is a simple package meant to make the application of YOLO to vesicle quantification as easy as possible.
Installation
This is really easy. An example of the code is shown below.
pip install VesicleYOLO-pentadec
Example
from VesicleYOLO_pentadec.analyze import predict_folder
# A list of vesicles from the folder 'example_folder', with annotations passed into 'package_out'.
vesicle_list = predict_folder("weights.pt",
r"example_folder",
"package_out")
Keep in mind
predict_folder is for batch image processing and will return a list of image names alongside vesicle counts.
predict_image is for singular images and will return a count only.
Notes on Parameters - what you can do with VesicleYOLO
predict_folder takes the following inputs:
weights_path: Currently required, the path to the model weights. In the future (tomorrow), I'm going to implement default weights.
images_directory: Required, the path to the images to be analyzed.
out_directory: Not required. Where annotations will be written; if annotations are chosen but no out_directory is set, a new directory is written. This is pretty easy but I haven't checked if it works yet haha.
num_slices: Not required, default is 256. Number of slices to cut the images into. Probably don't mess with this.
annotate_rect: Whether to draw rectangular 'bounding box' annotations in the out directory. Default is True.
annotate_ellipse: Whether to draw elliptical annotations in the out directory. Default is False.
predict_image takes the same inputs except for these things which you should leave blank:
length_divider: Amount to divide each length (height and width) by. I can't think of a conceivable reason why you would change this.
model_weights: Also not really something you should change takes the model weights from predict_folder.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vesicleyolo_pentadec-0.0.2.tar.gz.
File metadata
- Download URL: vesicleyolo_pentadec-0.0.2.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
267d228e5e499e233f82ce083d1a203d3e6b8311361749de23756e1c70a75980
|
|
| MD5 |
88fb87da25dd83fb875b2a11496600bf
|
|
| BLAKE2b-256 |
32cec73f3930aa6850eefb445e876647fb796df78c8a22ac162455a669438ec7
|
File details
Details for the file vesicleyolo_pentadec-0.0.2-py3-none-any.whl.
File metadata
- Download URL: vesicleyolo_pentadec-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c165b543c73c5e7e9bb18eb0ec52a040615a4aa790c3c644b18b1c3bb6c6dafc
|
|
| MD5 |
0a5ff258fc941c4e0f1a9adf85c8470a
|
|
| BLAKE2b-256 |
3b8bfde12dab009d06d16688e5aad8c3e1cd419934f0900c152b9e65e4a03411
|