Skip to content

Commit

Permalink
Merge pull request #28 from LuxImagingAI/update
Browse files Browse the repository at this point in the history
v0.2.0
  • Loading branch information
RaphaelMaser authored May 23, 2024
2 parents f1f1db9 + b747da2 commit 3e52339
Show file tree
Hide file tree
Showing 294 changed files with 156 additions and 32,170 deletions.
Binary file modified .DS_Store
Binary file not shown.
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Dockerfile
build
.github
CHANGELOG.md
README.md
DBSegment.egg-info
build
46 changes: 46 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: ci

on:
push:
branches:
- "main"
- "development"
# tags:
# - '*'
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: imagingai/$REPOSITORY_NAME
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
34 changes: 34 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# GitHub recommends pinning actions to a commit SHA.
# To get a newer version, you will need to update the SHA.
# You can also reference a tag or branch, but the action may change without warning.

name: Upload Python Package

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12.3'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
build/
models/
input/
output/

DBSegment/.DS_Store
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
This changelog follows the Semantic Versioning convention (version 2.0.0)

# Changelog

## 23.05.24

### Added
- Dockerfile
- Github action for publishing on docker
- Github action for publishing on pypi

### Changed
- updated dependencies
- replaced nnUNet code by dependency

### Removed
- most of the dependencies could be removed
14 changes: 0 additions & 14 deletions DBSegment.egg-info/PKG-INFO

This file was deleted.

273 changes: 0 additions & 273 deletions DBSegment.egg-info/SOURCES.txt

This file was deleted.

1 change: 0 additions & 1 deletion DBSegment.egg-info/dependency_links.txt

This file was deleted.

23 changes: 0 additions & 23 deletions DBSegment.egg-info/entry_points.txt

This file was deleted.

16 changes: 0 additions & 16 deletions DBSegment.egg-info/requires.txt

This file was deleted.

1 change: 0 additions & 1 deletion DBSegment.egg-info/top_level.txt

This file was deleted.

Binary file modified DBSegment/.DS_Store
Binary file not shown.
9 changes: 4 additions & 5 deletions DBSegment/DBSegment.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import requests
import zipfile
import argparse
import torch
import SimpleITK as sitk
import warnings
import platform
Expand Down Expand Up @@ -129,11 +128,11 @@ def enablePrint():

blockPrint()

import DBSegment.nnunet
from DBSegment.nnunet.inference.predict import predict_from_folder
from DBSegment.nnunet.paths import default_plans_identifier, network_training_output_dir, default_cascade_trainer, default_trainer
import nnunet
from nnunet.inference.predict import predict_from_folder
from nnunet.paths import default_plans_identifier, network_training_output_dir, default_cascade_trainer, default_trainer
from batchgenerators.utilities.file_and_folder_operations import join, isdir
from DBSegment.nnunet.utilities.task_name_id_conversion import convert_id_to_task_name
from nnunet.utilities.task_name_id_conversion import convert_id_to_task_name
enablePrint()


Expand Down
Binary file removed DBSegment/nnunet/.DS_Store
Binary file not shown.
7 changes: 0 additions & 7 deletions DBSegment/nnunet/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions DBSegment/nnunet/configuration.py

This file was deleted.

This file was deleted.

81 changes: 0 additions & 81 deletions DBSegment/nnunet/dataset_conversion/Task024_Promise2012.py

This file was deleted.

Loading

0 comments on commit 3e52339

Please sign in to comment.