2D pose estimation pipeline for tethered Drosophila.
Project description
Drosophila 2D Pose
- Load the model.
from model import Drosophila2DPose
from parser import create_parser
checkpoint_path = '/home/user/Desktop/DeepFly3D/weights/sh8_deepfly.tar'
args = create_parser().parse_args('')
model = Drosophila2DPose(checkpoint_path=checkpoint_path, **args.__dict__).cuda()
- Load the data.
from inference import path2inp
from dataset import Drosophila2Dataset
from torch.utils.data import DataLoader
image_path = '/home/user/Desktop/DeepFly3D/data/test/'
inp = path2inp(image_path) # extract list of images under the folder
dat = DataLoader(Drosophila2Dataset(inp), batch_size=8)
- Do the inference.
from inference import inference
points2d = inference(model, dat)
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
nely-df2d-0.14.tar.gz
(7.3 kB
view details)
Built Distribution
File details
Details for the file nely-df2d-0.14.tar.gz
.
File metadata
- Download URL: nely-df2d-0.14.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3aec84be178644bfa270d7589b85bc1caac72d19be8143144ab63b25ea6b8bbe |
|
MD5 | 4888cd84f29f438f42307f180a2c4c05 |
|
BLAKE2b-256 | ee337de3b63db2d69286a977210d6d1c23bd4fdf813f579533def9df01312d08 |
File details
Details for the file nely_df2d-0.14-py3-none-any.whl
.
File metadata
- Download URL: nely_df2d-0.14-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbc0f4b43a933e959cfba4f37643ec6d12885dd88a1e71d47d474295ce06d1c4 |
|
MD5 | dcdf34b6176c1cd9775d89dcdb9c9b12 |
|
BLAKE2b-256 | 92af8a26fabcdbc4665147805dcda6e4675336ed4fa4931ef4b2739ad5e5f7b8 |