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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
df2d-0.15.tar.gz
(7.4 kB
view details)
Built Distribution
df2d-0.15-py3-none-any.whl
(9.1 kB
view details)
File details
Details for the file df2d-0.15.tar.gz
.
File metadata
- Download URL: df2d-0.15.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5073c55b3de5968dc782363a212ce4e77ff2e705682a530a76a80e3f7414af4 |
|
MD5 | 2c6bf72e7a4e49b40c3be7e267ce8a44 |
|
BLAKE2b-256 | 20fadc3ade7923737c56c541cfffbb19328265e4fe484d7e64e9383b24fe4e30 |
File details
Details for the file df2d-0.15-py3-none-any.whl
.
File metadata
- Download URL: df2d-0.15-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6109ba989a4e71922083b9e038fd186820a165211fc61218b47b91d8e74cf2e |
|
MD5 | 58c191ae6a85b927d4dc58d7387c7966 |
|
BLAKE2b-256 | d70c688290be924fa416a0f39767754afe765a12067d34e68b6a12f48fcafb56 |