Skip to main content

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.14.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

df2d-0.14-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file df2d-0.14.tar.gz.

File metadata

  • Download URL: df2d-0.14.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

Hashes for df2d-0.14.tar.gz
Algorithm Hash digest
SHA256 c2a5efd6693f98c87356c17cc7ddf32f26183a0320abcfbec115e0e9fbf8895b
MD5 55657b4d55f091a3a06a364ab6b1206b
BLAKE2b-256 10fec2b2326293cdf40f1cd4fcf0c39b0d3b726ac108231da7709639c056b60b

See more details on using hashes here.

File details

Details for the file df2d-0.14-py3-none-any.whl.

File metadata

  • Download URL: 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.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

Hashes for df2d-0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 51f6d05680de7d6c736dafbd4bef8e3f87c501a9203bcd9424cff48221980a96
MD5 7f0736217269ce8cf9740926f8ebda04
BLAKE2b-256 7c5ce4318704f1a6bd1eb5a57011a6a9ac927da284833526d96d213e6e720698

See more details on using hashes here.

Supported by

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