-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
238 changed files
with
15,643 additions
and
3,007 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
channels: | ||
- pytorch | ||
- conda-forge | ||
name: | ||
sam | ||
dependencies: | ||
- cpuonly | ||
- pdoc | ||
- python-elf | ||
- pytorch | ||
- torchvision | ||
- tqdm | ||
- zarr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: build_documentation | ||
|
||
# build the documentation for a new release | ||
on: | ||
release: | ||
types: created | ||
|
||
# # for debugging | ||
# on: [push, pull_request] | ||
|
||
# security: restrict permissions for CI jobs. | ||
permissions: | ||
contents: read | ||
|
||
# NOTE: importing of napari fails with CI and I am not quite sure why | ||
# I tried to adjust it based on the napari CI tests, but that didn't seem to help | ||
|
||
# https://github.com/napari/napari/blob/main/.github/workflows/test_comprehensive.yml | ||
jobs: | ||
# Build the documentation and upload the static HTML files as an artifact. | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup miniconda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: sam | ||
mamba-version: "*" | ||
auto-update-conda: true | ||
environment-file: .github/doc_env.yaml | ||
python-version: ${{ matrix.python-version }} | ||
auto-activate-base: false | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
|
||
- name: Install package | ||
shell: bash -l {0} | ||
run: pip install --no-deps -e . | ||
|
||
# We use a custom build script for pdoc itself, ideally you just run `pdoc -o docs/ ...` here. | ||
- name: Run pdoc | ||
shell: bash -l {0} | ||
run: python build_doc.py --out | ||
|
||
- uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: tmp/ | ||
|
||
# Deploy the artifact to GitHub pages. | ||
# This is a separate job so that only actions/deploy-pages has the necessary permissions. | ||
deploy: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- id: deployment | ||
uses: actions/deploy-pages@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import argparse | ||
from subprocess import run | ||
|
||
parser = argparse.ArgumentParser() | ||
parser.add_argument("--out", "-o", action="store_true") | ||
args = parser.parse_args() | ||
|
||
cmd = ["pdoc", "--docformat", "google"] | ||
|
||
if args.out: | ||
cmd.extend(["--out", "tmp/"]) | ||
cmd.append("torch_em") | ||
|
||
run(cmd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[torch_em](https://github.com/constantinpape/torch-em) is a library for deep learning in microscopy images. It is built on top of [PyTorch](https://pytorch.org/). | ||
|
||
We are working on the documentation and will extend and improve it soon! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Jupyter Notebooks for `torch-em`-based Implementations and Tutorials | ||
|
||
1. `tutorial_create_dataloaders.ipynb`: This notebook gives you a head-start on how to create your custom dataloaders for segmentation for most data structures. It's recommended to checkout `torch_em.data.datasets.README.md` for the first outlook before getting started. | ||
1. `tutorial_create_dataloaders.ipynb`: This notebook gives you a head-start on how to create your custom dataloaders for segmentation for most data structures. It's recommended to checkout https://github.com/constantinpape/torch-em/blob/main/doc/datasets_and_dataloaders.md for the first outlook before getting started. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from torch_em.util.debug import check_loader | ||
from torch_em.data.datasets.medical import get_busi_loader | ||
|
||
|
||
ROOT = "/media/anwai/ANWAI/data/busi" | ||
|
||
|
||
def check_busi(): | ||
loader = get_busi_loader( | ||
path=ROOT, | ||
patch_shape=(512, 512), | ||
batch_size=2, | ||
category=None, | ||
resize_inputs=False, | ||
download=True, | ||
) | ||
|
||
check_loader(loader, 8) | ||
|
||
|
||
if __name__ == "__main__": | ||
check_busi() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from torch_em.util.debug import check_loader | ||
from torch_em.data.datasets.medical import get_drive_loader | ||
|
||
|
||
ROOT = "/media/anwai/ANWAI/data/drive" | ||
|
||
|
||
def check_drive(): | ||
loader = get_drive_loader( | ||
path=ROOT, | ||
patch_shape=(256, 256), | ||
batch_size=2, | ||
resize_inputs=True, | ||
download=True, | ||
) | ||
|
||
check_loader(loader, 8) | ||
|
||
|
||
if __name__ == "__main__": | ||
check_drive() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.