-
Notifications
You must be signed in to change notification settings - Fork 15
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
base: main
Are you sure you want to change the base?
Binderising #5
Changes from all commits
d39c263
2844d50
1c89440
f30742a
b44c625
45cf919
f5fa3d0
d1f0688
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 | ||
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: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
libgl1-mesa-glx |
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same with all the compiler stuff and the nvidia pluggins. |
||
- pip: | ||
- stardist | ||
- "./" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,7 @@ def build_extension(self, ext): | |
common_src = ['stardist/lib/utils.cpp'] | ||
|
||
setup( | ||
name='stardist', | ||
name='splinedist', | ||
version=__version__, | ||
description='StarDist', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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, | ||
|
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 "$@" |
There was a problem hiding this comment.
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.