Skip to content

Commit 47fe490

Browse files
author
Tim-Oliver Buchholz
authored
Merge pull request #2 from fmi-faim/update-activation-functions
Rework RDCNet
2 parents 829994b + aefdd4c commit 47fe490

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2469
-11850
lines changed

.copier-answers.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# GitHub syntax highlighting
22
pixi.lock linguist-language=YAML
3+
# SCM syntax highlighting & preventing 3-way merges
4+
pixi.lock merge=binary linguist-language=YAML linguist-generated=true

.github/workflows/publish.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
branches:
8+
- main
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
build:
15+
name: Build wheel and source distribution
16+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
17+
runs-on: ubuntu-latest
18+
19+
environment: release
20+
permissions:
21+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
29+
- name: Set up Python
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: '3.11'
33+
cache: 'pip'
34+
35+
- name: Install dependencies
36+
run: |
37+
python -m pip install --upgrade pip
38+
pip install hatch
39+
40+
- name: Build package
41+
run: hatch build
42+
43+
- name: Upload artifacts
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: python-artifacts
47+
path: dist/*
48+
if-no-files-found: error
49+
50+
publish:
51+
name: Publish to PyPI
52+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
53+
needs:
54+
- build
55+
runs-on: ubuntu-latest
56+
57+
permissions:
58+
contents: write
59+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
60+
61+
steps:
62+
- name: Download Python artifacts
63+
uses: actions/download-artifact@v4
64+
with:
65+
name: python-artifacts
66+
path: dist
67+
- name: Add assets to release
68+
uses: softprops/action-gh-release@v2
69+
with:
70+
files: dist/*
71+
- name: Publish package distributions to PyPI
72+
uses: pypa/[email protected]

.pre-commit-config.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ repos:
1414
hooks:
1515
- id: ruff
1616
args: [--fix, --exit-non-zero-on-fix, --extend-ignore=E402]
17+
exclude: 'src/pytorch_rdc_net/matching.py'
1718
- id: ruff-format
1819
- repo: https://github.com/crate-ci/typos
1920
rev: v1.23.6
@@ -22,13 +23,4 @@ repos:
2223
files: \.(py|md|rst|yaml|toml)
2324
# empty to do not write fixes
2425
args: []
25-
exclude: pyproject.toml
26-
# mypy will force you to type your code ;)
27-
# - repo: https://github.com/pre-commit/mirrors-mypy
28-
# rev: v1.11.1
29-
# hooks:
30-
# - id: mypy
31-
# language: python
32-
# args: [--strict, --ignore-missing-imports]
33-
# additional_dependencies: ['types-requests', 'types-PyYAML']
34-
# exclude: docs/source/conf.py
26+
exclude: 'pyproject.toml|src/pytorch_rdc_net/matching.py'

README.md

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
# Pytorch Rdc-Net
1+
# PyTorch RDC-Net
22

3-
## Repository Overview
4-
The repository uses [pixi](https://pixi.sh) to manage the project dependencies.
5-
Please follow the installation instructions in [docs/installation.md](docs/installation.md) to get started.
6-
Once pixi is installed you can run `pixi run build_docs` in the root of the project to build the documentation.
7-
The documentation is then available offline in `site/index.html`.
3+
This is a PyTorch implementation of the [RDC-Net](https://github.com/fmi-basel/RDCNet) for instance segmentation of 2D and 3D images. Some demo training scripts can be found [here](https://github.com/fmi-faim/faim_rdcnet).
84

9-
* `docs`: Contains the source files for the documentation.
10-
* `infrastructure`: Contains installed tools e.g. pixi.
11-
* `processed_data`: Contains all processed data which is used for the final results.
12-
* `raw_data`: Contains the raw data from your experiments.
13-
* `results`: Contains final results like figures and plots.
14-
* `runs`: Contains all config files which were used to produce processed data or results.
15-
* `sandbox`: Contains all experimental code and scripts which are not used for final results.
16-
* `source`: Contains all scripts which are used to produce processed data and final results.
175

18-
---
19-
This project was generated with the [faim-ipa-project](https://fmi-faim.github.io/ipa-project-template/) copier template.
6+
## Citation
7+
If you find this work useful, please consider citing:
8+
9+
```bibtex
10+
@inproceedings{ortiz2020,
11+
title={RDCNet: Instance segmentation with a minimalist recurrent residual network},
12+
author={Ortiz, Raphael and de Medeiros, Gustavo and Peters H.F.M., Antoine and Liberali, Prisca and Rempfler, Markus},
13+
booktitle={International Workshop on Machine Learning in Medical Imaging},
14+
year={2020},
15+
}
16+
```

_typos.toml

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/data.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/explanation/explanations.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/how_to/guides.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/img/favicon.ico

-15 KB
Binary file not shown.

0 commit comments

Comments
 (0)