Skip to content

Commit

Permalink
Move to 3.5.4 version
Browse files Browse the repository at this point in the history
  • Loading branch information
danifranco committed Oct 10, 2024
1 parent 5f9b0aa commit 4cb6490
Show file tree
Hide file tree
Showing 26 changed files with 29 additions and 30 deletions.
2 changes: 1 addition & 1 deletion biapy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "3.5.3"
__version__ = "3.5.4"

import argparse
import os
Expand Down
4 changes: 2 additions & 2 deletions biapy/utils/env/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ RUN conda update -qy conda \
SHELL ["conda", "run", "-n", "BiaPy_env", "/bin/bash", "-c"]

# Install BiaPy
RUN pip install biapy==3.5.3
RUN pip install biapy==3.5.4

# Install Pytorch 2.2.0 + CUDA 11.8
RUN pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu118
RUN pip install timm pytorch-msssim torchmetrics[image]

# Clone BiaPy, as running it with python -c "" stops the container with no error after a few seconds running
RUN git clone --depth 1 https://github.com/BiaPyX/BiaPy.git --branch v3.5.3 /installations/BiaPy
RUN git clone --depth 1 https://github.com/BiaPyX/BiaPy.git --branch v3.5.4 /installations/BiaPy

# This time clone the last commit (25729c ; v3.5.2) as some minor bugs were solved but not created a new release yet
#RUN git clone --depth 1 https://github.com/BiaPyX/BiaPy.git /installations/BiaPy
Expand Down
4 changes: 2 additions & 2 deletions biapy/utils/env/Dockerfile_CUDA10.2
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ RUN conda update -qy conda \
SHELL ["conda", "run", "-n", "BiaPy_env", "/bin/bash", "-c"]

# Install BiaPy
RUN pip install biapy==3.5.3
RUN pip install biapy==3.5.4

# Install Pytorch 1.12.1 + CUDA 10.2
RUN conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=10.2 -c pytorch
RUN pip install timm pytorch-msssim torchmetrics[image]

# Clone BiaPy, as running it with python -c "" stops the container with no error after a few seconds running
RUN git clone --depth 1 https://github.com/BiaPyX/BiaPy.git --branch v3.5.3 /installations/BiaPy
RUN git clone --depth 1 https://github.com/BiaPyX/BiaPy.git --branch v3.5.4 /installations/BiaPy
# This time clone the last commit (25729c ; v3.5.2) as some minor bugs were solved but not created a new release yet
# RUN git clone --depth 1 https://github.com/BiaPyX/BiaPy.git /installations/BiaPy

Expand Down
3 changes: 1 addition & 2 deletions biapy/utils/scripts/export_bmz_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import sys
import argparse

Expand Down Expand Up @@ -34,7 +33,7 @@

# import pdb; pdb.set_trace()
if args["reuse_original_bmz_config"]:
biapy.export_model_to_bmz("/data/dfranco/bmz_check", reuse_original_bmz_config=True)
biapy.export_model_to_bmz(args["bmz_folder"], reuse_original_bmz_config=True)
else:
# Create a dict with all BMZ requirements
bmz_cfg = {}
Expand Down
4 changes: 2 additions & 2 deletions biapy/utils/scripts/run_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@
"yaml": "test_5.yaml",
"internal_checks": [
{"type": "DatasetMatching", "pattern": "DatasetMatching(criterion='iou', thresh=0.3,", "nApparition": 1, "metric": "f1",
"gt": True, "value": 0.6},
"gt": True, "value": 0.55},
{"type": "DatasetMatching", "pattern": "DatasetMatching(criterion='iou', thresh=0.3,", "nApparition": 2, "metric": "f1",
"gt": True, "value": 0.6}, # Post-processing
"gt": True, "value": 0.55}, # Post-processing
]
}

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "biapy"
version = "3.5.3"
version = "3.5.4"
description = "BiaPy: Bioimage analysis pipelines in Python"
readme = "README.md"
requires-python = ">=3.10"
Expand Down
2 changes: 1 addition & 1 deletion templates/classification/2d_classification.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4

SYSTEM:
NUM_CPUS: -1
Expand Down
2 changes: 1 addition & 1 deletion templates/classification/2d_classification_rgb.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4

SYSTEM:
NUM_CPUS: -1
Expand Down
2 changes: 1 addition & 1 deletion templates/classification/3d_classification.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4

SYSTEM:
NUM_CPUS: -1
Expand Down
2 changes: 1 addition & 1 deletion templates/denoising/2d_denoising.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4
# We try to mimic here N2Void project parameters
SYSTEM:
NUM_CPUS: -1
Expand Down
2 changes: 1 addition & 1 deletion templates/denoising/3d_denoising.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4
# We try to mimic here N2Void project parameters

SYSTEM:
Expand Down
2 changes: 1 addition & 1 deletion templates/detection/2d_detection.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4

SYSTEM:
NUM_CPUS: -1
Expand Down
2 changes: 1 addition & 1 deletion templates/detection/3D_cell_detection_zarr_tutorial.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4

SYSTEM:
NUM_CPUS: -1
Expand Down
2 changes: 1 addition & 1 deletion templates/detection/3d_detection.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4

SYSTEM:
NUM_CPUS: -1
Expand Down
2 changes: 1 addition & 1 deletion templates/image-to-image/2d_image-to-image.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4

SYSTEM:
NUM_CPUS: -1
Expand Down
2 changes: 1 addition & 1 deletion templates/image-to-image/3d_image-to-image.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4

SYSTEM:
NUM_CPUS: -1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4

SYSTEM:
NUM_CPUS: -1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4

SYSTEM:
NUM_CPUS: -1
Expand Down
2 changes: 1 addition & 1 deletion templates/self-supervised/2d_self-supervised.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4

SYSTEM:
NUM_CPUS: -1
Expand Down
2 changes: 1 addition & 1 deletion templates/self-supervised/3d_self-supervised.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4

SYSTEM:
NUM_CPUS: -1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4

SYSTEM:
NUM_CPUS: -1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4

SYSTEM:
NUM_CPUS: -1
Expand Down
2 changes: 1 addition & 1 deletion templates/semantic_segmentation/wound_segmentation.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4

SYSTEM:
NUM_CPUS: -1
Expand Down
2 changes: 1 addition & 1 deletion templates/super-resolution/2d_super-resolution.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4

SYSTEM:
NUM_CPUS: -1
Expand Down
2 changes: 1 addition & 1 deletion templates/super-resolution/2d_super-resolution_rgb.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4

SYSTEM:
NUM_CPUS: -1
Expand Down
2 changes: 1 addition & 1 deletion templates/super-resolution/3d_super-resolution.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BiaPy version: 3.5.3
# BiaPy version: 3.5.4

SYSTEM:
NUM_CPUS: -1
Expand Down

0 comments on commit 4cb6490

Please sign in to comment.