Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binderising #5

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: GitHub Actions Demo
on: [push]
jobs:
Explore-GitHub-Actions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
# - run: python3 -m pip install jupyter-repo2docker
# - run: repo2docker --no-run --image-name spline_contour:latest --user-id=1001 --user-name=1001 .
# - run: docker run spline_contour:latest pytest --nbmake data.ipynb training.ipynb prediction.ipynb
Comment on lines +9 to +11
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the we do not need this commands, I'd suggest to remove it. Unless, there is a reason to leave it.

13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
docker.build:
docker build . -t spline_contour

docker.test:
docker run spline_contour conda run pytest --collect-only --nbmake "data.ipynb" "training.ipynb" "prediction.ipynb"

repo2docker.build:
repo2docker --no-run --image-name spline_contour .

# repo2docker.tests:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with this, I'd remove the commented commands :)


mamba.build.env:
mamba env create -f environment.yml
1 change: 1 addition & 0 deletions apt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libgl1-mesa-glx
45 changes: 45 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: splinedist_contour
channels:
- anaconda
- pytorch
- conda-forge
- bioconda
- defaults
- nvidia
dependencies:
- conda
- python
- cudatoolkit
- pip
# - mamba
- pytest
- tensorflow
- tensorflow-gpu
- tifffile
- nbmake
# - nb_conda_kernels
- ipykernel
- ipywidgets
- ipython
- numpy
- tqdm
- scikit-learn
- opencv=4.5.0
- mesa-libgl-devel-cos7-x86_64
- mesa-libgl-cos6-x86_64
- libopencv
- py-opencv
- ipython
# - jupyter
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we don't need Jupyter we can remove it

- nbconvert
- matplotlib
- scipy
- cudnn
# - cxx-compilern
# - gcc_linux-64
# - nvcc_linux-64
# - nccl
# - nvidia-ml
Comment on lines +38 to +42
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with all the compiler stuff and the nvidia pluggins.

- pip:
- stardist
- "./"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def build_extension(self, ext):
common_src = ['stardist/lib/utils.cpp']

setup(
name='stardist',
name='splinedist',
version=__version__,
description='StarDist',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ctr26 sorry to be picky, could you please change the description too? It says also StarDist 😄

long_description=long_description,
Expand Down
14 changes: 14 additions & 0 deletions start
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# # Allow drivers installed by the nvidia-driver-installer to be located
# export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/nvidia/lib64
# # Also, utilities like `nvidia-smi` are installed here
# export PATH=${PATH}:/usr/local/nvidia/bin

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CONDA_PREFIX/lib64}:${CONDA_PREFIX}/lib64/lib:/usr/local/nvidia/lib64

# Also, utilities like `nvidia-smi` are installed here
export PATH=${PATH}:/usr/local/nvidia/bin


exec "$@"