Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ich/data-centric-platform into models-refactoring
  • Loading branch information
Christina Bukas committed Mar 7, 2024
2 parents 0de002f + cf51bfe commit f4aa204
Show file tree
Hide file tree
Showing 43 changed files with 1,406 additions and 445 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.9, "3.10"]
python-version: [3.9, "3.10", "3.11"]
env:
DISPLAY: ':99.0'
steps:
Expand Down
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
data/
in_progress/
curated/
uncurated/

# model dir
*mytrainedmodel/

#configs
src/client/dcp_client/config.cfg
src/server/dcp_server/config.cfg

# Byte-compiled / optimized / DLL files
__pycache__/
Expand All @@ -19,7 +21,7 @@ __pycache__/

# Distribution / packaging
.Python
build/
# build/
develop-eggs/
dist/
downloads/
Expand Down Expand Up @@ -80,7 +82,7 @@ instance/
.scrapy

# Sphinx documentation
docs/_build/
# docs/build/

# PyBuilder
target/
Expand Down Expand Up @@ -151,8 +153,6 @@ dmypy.json
.idea/

.DS_Store
docs/
test-napari.pub
data/
BentoML/

30 changes: 30 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.10"
# You can also specify other tool versions:
# nodejs: "19"
# rust: "1.64"
# golang: "1.19"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py

# Optionally declare the Python requirements required to build your docs
python:
# Install both Python packages before building the docs
install:
- method: pip
path: src/client
- method: pip
path: src/server
- requirements: docs/requirements.txt
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
![stability-wip](https://img.shields.io/badge/stability-work_in_progress-lightgrey.svg)
![tests](https://github.com/HelmholtzAI-Consultants-Munich/data-centric-platform/actions/workflows/test.yml/badge.svg?event=push)
[![codecov](https://codecov.io/gh/HelmholtzAI-Consultants-Munich/data-centric-platform/branch/main/graph/badge.svg)](https://codecov.io/gh/HelmholtzAI-Consultants-Munich/data-centric-platform)

[![Documentation Status](https://readthedocs.org/projects/data-centric-platform/badge/?version=latest)](https://data-centric-platform.readthedocs.io/en/latest/?badge=latest)


## How to use this?
Expand All @@ -16,7 +16,7 @@ To run the client GUI follow the instructions described in [DCP Client Installat
DCP handles all kinds of **segmentation tasks**! Try it out if you need to do:
* **Instance** segmentation
* **Semantic** segmentation
* **Panoptic** segmentation
* **Multi-class instance** segmentation

### Toy data
This repo includes the ```data/``` directory with some toy data which you can use as the *Uncurated dataset* folder. You can create (empty) folders for the other two directories required in the welcome window and start playing around.
Expand All @@ -29,3 +29,5 @@ Our platform encourages the use of data centric practices. With the user friendl
- Focus on data curation: no interaction with model parameters during training and inference

#### *Get more with less!*

<img src="https://github.com/HelmholtzAI-Consultants-Munich/data-centric-platform/blob/main/src/client/readme_figs/dcp_pipeline.png" width="200" height="200">
20 changes: 20 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
35 changes: 35 additions & 0 deletions docs/make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@ECHO OFF

pushd %~dp0

REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.https://www.sphinx-doc.org/
exit /b 1
)

if "%1" == "" goto help

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%

:end
popd
2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sphinx
sphinx-rtd-theme
48 changes: 48 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'DCP'
copyright = '2024, Christina Bukas, Mariia Koren, Helena Pelin'
author = 'Christina Bukas, Mariia Koren, Helena Pelin'
release = '0.1'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = []

templates_path = ['_templates']
exclude_patterns = []

language = 'English'

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'alabaster'
html_static_path = ['_static']

import os
import sys
from pathlib import Path
import sphinx_rtd_theme

# Add parent dir to known paths
p = Path(__file__).parents[2]
sys.path.insert(0, os.path.abspath(p))

# Add the following extensions
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.napoleon',
'sphinx_rtd_theme'
]

# Use RTD theme
html_theme = "sphinx_rtd_theme"
34 changes: 34 additions & 0 deletions docs/source/dcp_client.gui.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
dcp\_client.gui package
=======================

.. automodule:: dcp_client.gui
:members:
:undoc-members:
:show-inheritance:

Submodules
----------

dcp\_client.gui.main\_window module
-----------------------------------

.. automodule:: dcp_client.gui.main_window
:members:
:undoc-members:
:show-inheritance:

dcp\_client.gui.napari\_window module
-------------------------------------

.. automodule:: dcp_client.gui.napari_window
:members:
:undoc-members:
:show-inheritance:

dcp\_client.gui.welcome\_window module
--------------------------------------

.. automodule:: dcp_client.gui.welcome_window
:members:
:undoc-members:
:show-inheritance:
19 changes: 19 additions & 0 deletions docs/source/dcp_client.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
dcp\_client package
===================


.. toctree::
:maxdepth: 4

dcp_client.gui
dcp_client.utils


dcp\_client.app module
----------------------

.. automodule:: dcp_client.app
:members:
:undoc-members:
:show-inheritance:

51 changes: 51 additions & 0 deletions docs/source/dcp_client.utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
dcp\_client.utils package
=========================

.. automodule:: dcp_client.utils
:members:
:undoc-members:
:show-inheritance:

Submodules
----------

dcp\_client.utils.bentoml\_model module
---------------------------------------

.. automodule:: dcp_client.utils.bentoml_model
:members:
:undoc-members:
:show-inheritance:

dcp\_client.utils.fsimagestorage module
---------------------------------------

.. automodule:: dcp_client.utils.fsimagestorage
:members:
:undoc-members:
:show-inheritance:

dcp\_client.utils.settings module
---------------------------------

.. automodule:: dcp_client.utils.settings
:members:
:undoc-members:
:show-inheritance:

dcp\_client.utils.sync\_src\_dst module
---------------------------------------

.. automodule:: dcp_client.utils.sync_src_dst
:members:
:undoc-members:
:show-inheritance:

dcp\_client.utils.utils module
------------------------------

.. automodule:: dcp_client.utils.utils
:members:
:undoc-members:
:show-inheritance:

Loading

0 comments on commit f4aa204

Please sign in to comment.