deepflash2
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: deepflash2 | ||
| Version: 0.1.5 | ||
| Version: 0.1.6 | ||
| Summary: A Deep learning pipeline for segmentation of fluorescent labels in microscopy images | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/matjesg/deepflash2 |
@@ -1,1 +0,1 @@ | ||
| __version__ = "0.1.5" | ||
| __version__ = "0.1.6" |
+12
-6
@@ -8,7 +8,8 @@ # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/01_models.ipynb (unless otherwise specified). | ||
| import torch, numpy as np | ||
| import cv2 | ||
| import segmentation_models_pytorch as smp | ||
| from fastcore.basics import patch | ||
| import cv2 | ||
| import subprocess, sys | ||
| from fastdownload import download_url | ||
| from pathlib import Path | ||
| import sys, subprocess | ||
| from pip._internal.operations import freeze | ||
@@ -72,9 +73,14 @@ | ||
| # Cell | ||
| def check_cellpose_installation(): | ||
| commit_hash = '316927eff7ad2201391957909a2114c68baee309' #version 0.6.6.dev13+g316927e | ||
| def check_cellpose_installation(show_progress=True): | ||
| tarball = 'cellpose-0.6.6.dev13+g316927e.tar.gz' # '316927eff7ad2201391957909a2114c68baee309' | ||
| try: | ||
| assert [x for x in freeze.freeze() if x.startswith('cellpose')][0][-len(commit_hash):]==commit_hash | ||
| extract = [x for x in freeze.freeze() if x.startswith('cellpose')][0][-15:] | ||
| assert extract==tarball[-15:] | ||
| except: | ||
| print(f'Installing cellpose. Please wait.') | ||
| subprocess.check_call([sys.executable, "-m", "pip", "install", '--no-deps', f'git+https://github.com/MouseLand/cellpose.git@{commit_hash}']) | ||
| home_dir = Path.home()/'.deepflash2' | ||
| home_dir.mkdir(exist_ok=True, parents=True) | ||
| url = f'https://github.com/matjesg/deepflash2/releases/download/0.1.4/{tarball}' | ||
| file = download_url(url, home_dir, show_progress=show_progress) | ||
| subprocess.check_call([sys.executable, "-m", "pip", "install", '--no-deps', file.as_posix()]) | ||
@@ -81,0 +87,0 @@ # Cell |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: deepflash2 | ||
| Version: 0.1.5 | ||
| Version: 0.1.6 | ||
| Summary: A Deep learning pipeline for segmentation of fluorescent labels in microscopy images | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/matjesg/deepflash2 |
+1
-1
@@ -11,3 +11,3 @@ [DEFAULT] | ||
| branch = master | ||
| version = 0.1.5 | ||
| version = 0.1.6 | ||
| min_python = 3.6 | ||
@@ -14,0 +14,0 @@ audience = Developers |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
220175
0.13%3536
0.17%