You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

deepflash2

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deepflash2 - pypi Package Compare versions

Comparing version
0.1.5
to
0.1.6
+1
-1
deepflash2.egg-info/PKG-INFO
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"

@@ -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

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

@@ -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