{ "info": { "author": "Rickard Sjoegren", "author_email": "rickard.sjoegren@sartorius.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Artificial Intelligence" ], "description": "# darwin-pytorch\n\nThis is a small package for interfacing [V7Lab](https://www.v7labs.com/)'s annotation tool \n[Darwin](https://darwin.v7labs.com) with [Pytorch](https://pytorch.org/). \n\n## Quick start\n\n### Install Pytorch\n\nFirst [install your preferred version of Pytorch](https://pytorch.org/get-started/locally/) including `torchvision`.\n\n### Install darwin-pytorch\nThen use pip to install `darwin-pytorch`:\n\n```\npip install darwin_pytorch\n```\n\n## Examples\n\n### Loading annotations\n\n`darwin-pytorch` provides a high-level wrapper around \n[`darwin-cli`](https://github.com/v7labs/darwin-cli) for \nloading datasets from Darwin. \n\nExample of authenticating and downloading an annotated dataset:\n\n```\nimport darwin_pytorch\n# Checks for DARWIN_PASSWORD environment variable, if this is not found the user\n# will be prompted for password.\nclient = darwin_pytorch.DarwinClient('me@email.com')\ndata_path = client.download_dataset('dataset-name') # Downloads data and returns root-path.\n```\n\n### Dataset\n\n`darwin-pytorch` also provides a Pytorch `Dataset` wrapping a dataset downloaded from Darwin. Example use:\n\n```\nds = darwin_pytorch.DarwinDataset(data_path)\nds[0] # --> (PIL.Image, target-int)\nds[:2] # --> [(PIL.Image, target-int), (PIL.Image, target-int))]\nds[[0, 3]] # --> [(PIL.Image, target-int), (PIL.Image, target-int)]\n```\n\n**Please note**, so far only binary classification datasets are supported.\n\n## License\n\n`darwin-pytorch` is MIT-style license as found in the LICENSE file.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sartorius-research/darwin-pytorch", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "darwin-pytorch", "package_url": "https://pypi.org/project/darwin-pytorch/", "platform": "", "project_url": "https://pypi.org/project/darwin-pytorch/", "project_urls": { "Homepage": "https://github.com/sartorius-research/darwin-pytorch" }, "release_url": "https://pypi.org/project/darwin-pytorch/0.1.2/", "requires_dist": null, "requires_python": ">=3.6", "summary": "Small package for interfacing V7Lab's Darwin with Pytorch", "version": "0.1.2" }, "last_serial": 5862845, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6d1ab5537867e56f54fe9711946825c9", "sha256": "95617d316d2e4c28872c6db2e1c93479f1e3e9c406a9164e2b3dcaa0a23f49ec" }, "downloads": -1, "filename": "darwin_pytorch-0.1.tar.gz", "has_sig": false, "md5_digest": "6d1ab5537867e56f54fe9711946825c9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4364, "upload_time": "2019-09-18T07:44:58", "url": "https://files.pythonhosted.org/packages/d4/5b/2e6cfd37b40d00c8419fe8332a31dccee2582751b8576b9953a7ec98e204/darwin_pytorch-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "2f2490f6b585ee2862bcc44ae207841f", "sha256": "30a54dbe645101d98ad5a36aa89ace5717c57c1b25905d94babd33b94211c4f1" }, "downloads": -1, "filename": "darwin_pytorch-0.1.1.tar.gz", "has_sig": false, "md5_digest": "2f2490f6b585ee2862bcc44ae207841f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4363, "upload_time": "2019-09-18T07:48:11", "url": "https://files.pythonhosted.org/packages/3f/39/70e1e21c44c35ec772d62933d16fbac727cd3bd4d4e8befa3d9ab2582148/darwin_pytorch-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "12065147e09b8e3ec5d5858008c47c56", "sha256": "c9753f9f213d52ce2ac46ef4d951f7aac110ed9bf5ec6f8e40de53414413d8b0" }, "downloads": -1, "filename": "darwin_pytorch-0.1.2.tar.gz", "has_sig": false, "md5_digest": "12065147e09b8e3ec5d5858008c47c56", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4412, "upload_time": "2019-09-20T15:07:14", "url": "https://files.pythonhosted.org/packages/21/f9/7eae0c5307636c46ba1bfc0d4749eb43607ed26f1585800bbe6194898e14/darwin_pytorch-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "12065147e09b8e3ec5d5858008c47c56", "sha256": "c9753f9f213d52ce2ac46ef4d951f7aac110ed9bf5ec6f8e40de53414413d8b0" }, "downloads": -1, "filename": "darwin_pytorch-0.1.2.tar.gz", "has_sig": false, "md5_digest": "12065147e09b8e3ec5d5858008c47c56", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4412, "upload_time": "2019-09-20T15:07:14", "url": "https://files.pythonhosted.org/packages/21/f9/7eae0c5307636c46ba1bfc0d4749eb43607ed26f1585800bbe6194898e14/darwin_pytorch-0.1.2.tar.gz" } ] }