kleinnner commited on
Commit
ca1b50e
·
verified ·
1 Parent(s): db514a9

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +330 -0
README.md ADDED
@@ -0,0 +1,330 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CORE BIOIMAGE IO PYTHON
2
+
3
+ ![license](https://img.shields.io/badge/license-MIT-blue) ![offline-first](https://img.shields.io/badge/offline--first-air--gap-green) ![audit](https://img.shields.io/badge/audit-SHA3--256-orange) ![category](https://img.shields.io/badge/category-scientific_lab-lightgrey)
4
+
5
+ > Anticloud-hardened packaging of the upstream project `CORE_BIOIMAGE_IO_PYTHON` in category **SCIENTIFIC LAB**. Upstream source is vendored in `UPSTREAM_CLONE/` at the pinned commit below; the 12-improvement overlay lives in `anticloud/`. Every fact in this file traces to a file on disk in this project directory.
6
+
7
+ **Category:** SCIENTIFIC LAB · **Upstream:** https://github.com/bioimage-io/core-bioimage-io-python · **Upstream pin:** `31703b23e9d666a94bedab248411d95348a18ab3` · **Vendor:** Anticloud FZ LLE
8
+
9
+ ---
10
+
11
+ ## What This Project Does
12
+
13
+ ![License](https://img.shields.io/github/license/bioimage-io/core-bioimage-io-python.svg)
14
+ [![PyPI](https://img.shields.io/pypi/v/bioimageio-core.svg?style=popout)](https://pypi.org/project/bioimageio.core/)
15
+ [![conda-version](https://anaconda.org/conda-forge/bioimageio.core/badges/version.svg)](https://anaconda.org/conda-forge/bioimageio.core/)
16
+ [![downloads](https://static.pepy.tech/badge/bioimageio.core)](https://pepy.tech/project/bioimageio.core)
17
+ [![conda-forge downloads](https://img.shields.io/conda/dn/conda-forge/bioimageio.core.svg?label=conda-forge)](https://anaconda.org/conda-forge/bioimageio.core/)
18
+ ![code style](https://img.shields.io/badge/code%20style-black-000000.svg)
19
+ [![coverage](https://bioimage-io.github.io/core-bioimage-io-python/coverage/coverage-badge.svg)](https://bioimage-io.github.io/core-bioimage-io-python/coverage/index.html)
20
+
21
+ # bioimageio.core
22
+
23
+ `bioimageio.core` is a python package that implements prediction with bioimage.io models
24
+ including standardized pre- and postprocessing operations.
25
+ Such models are represented as [bioimageio.spec](https://bioimage-io.github.io/spec-bioimage-io) resource descriptions.
26
+
27
+ In addition bioimageio.core provides functionality to convert model weight formats
28
+ and compute selected dataset statistics used for preprocessing.
29
+
30
+ ## Documentation
31
+
32
+ [Here you find the bioimageio.core documentation.](https://bioimage-io.github.io/core-bioimage-io-python)
33
+
34
+ #### Examples
35
+
36
+ Notebooks that save and load resource descriptions and validate their format (using <a href="https://bioimage-io.github.io/spec-bioimage-io/">bioimageio.spec</a>, a dependency of bioimageio.core)
37
+ <ul>
38
+ <li><a href="https://github.com/bioimage-io/spec-bioimage-io/blob/main/example/load_model_and_create_your_own.ipynb">load_model_and_create_your_own.ipynb</a> <a target="_blank" href="https://colab.research.google.com/github/bioimage-io/spec-bioimage-io/blob/main/example/load_model_and_create_your_own.ipynb">
39
+ <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
40
+ </a></li>
41
+ <li><a href="https://github.com/bioimage-io/spec-bioimage-io/blob/main/example/dataset_creation.ipynb">dataset_creation.ipynb</a> <a target="_blank" href="https://colab.research.google.com/github/bioimage-io/spec-bioimage-io/blob/main/example/dataset_creation.ipynb">
42
+ <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
43
+ </a></li>
44
+ </ul>
45
+
46
+ Use the described resources in Python with <a href="https://bioimage-io.github.io/core-bioimage-io-python/">bioimageio.core</a>
47
+ <ul>
48
+ <li><a href="https://github.com/bioimage-io/core-bioimage-io-python/blob/main/example/model_usage.ipynb">model_usage.ipynb</a><a target="_blank" href="https://colab.research.google.com/github/bioimage-io/core-bioimage-io-python/blob/main/example/model_usage.ipynb">
49
+ <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
50
+ </a></li>
51
+ </ul>
52
+
53
+ #### Presentations
54
+
55
+ - [Create a model from scratch](https://bioimage-io.github.io/core-bioimage-io-python/presentations/create_ambitious_sloth.slides.html) ([source](https://github.com/bioimage-io/core-bioimage-io-python/tree/main/presentations))
56
+
57
+ ## Set up Development Environment
58
+
59
+ To set up a development environment run the following commands:
60
+
61
+ ```console
62
+ conda create -n core python=$(grep -E '^requires-python' pyproject.toml | grep -oE '[0-9]+\.[0-9]+')
63
+ conda activate core
64
+ pip install -e .[dev,partners]
65
+ ```
66
+
67
+ ### Joint development of bioimageio.spec and bioimageio.core
68
+
69
+ Assuming [spec-bioimage-io](https://github.com/bioimage-io/spec-bioimage-io) is sourced to the parent folder
70
+ a joint development environment can be created with the following commands:
71
+
72
+ ```console
73
+ conda create -n core python=$(grep -E '^requires-python' pyproject.toml | grep -oE '[0-9]+\.[0-9]+')
74
+ conda activate core
75
+ pip install -e .[dev,partners] -e ../spec-bioimage-io[dev]
76
+ ```
77
+
78
+ ## Logging level
79
+
80
+ `bioimageio.spec` and `bioimageio.core` use [loguru](https://github.com/Delgan/loguru) for logging, hence the logging level
81
+ may be controlled with the `LOGURU_LEVEL` environment variable.
82
+ The `bioimageio` CLI has logging enabled by default.
83
+ To activate logging when using bioimageio.spec/bioimageio.core as a library, add
84
+
85
+ ```python
86
+ from loguru import logger
87
+
88
+ logger.enable("bioimageio")
89
+ ```
90
+
91
+ ## Changelog
92
+
93
+ See [changelog.md](changelog.md)
94
+
95
+ *Quoted from the upstream `README.md` file in `UPSTREAM_CLONE/`.*
96
+ Project-specific facts detected in this directory:
97
+
98
+ - Ecosystem: **Python** (manifests: pyproject.toml; scanned in UPSTREAM_CLONE)
99
+ - Top-level source layout: `conda-recipe/`, `example/`, `presentations/`, `scripts/`, `src/`, `tests/`
100
+ - Snapshot size: **76 files**, **13123 lines of code** (measured; see Benchmarks)
101
+ - Primary languages: `.py` (57), `.yaml` (6), `.yml` (3), `(none)` (2), `.md` (2), `.html` (1)
102
+ - Upstream commit pinned for this packaging: `31703b23e9d666a94bedab248411d95348a18ab3`
103
+
104
+ ---
105
+
106
+ ## Installation
107
+
108
+ No installation section was found in the upstream readme, so the commands below are generated from the manifests detected in this project directory.
109
+
110
+ ```sh
111
+ python -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate
112
+ pip install -e . # or: pip install -r requirements.txt
113
+ ```
114
+
115
+ Overlay install (this project):
116
+
117
+ ```sh
118
+ python -m pip install -e anticloud/ # overlay package with the 12 improvements
119
+ python anticloud/cli.py --help # 13 subcommands, JSON stdout
120
+ ```
121
+
122
+ ---
123
+
124
+ ## Usage
125
+
126
+ Notebooks that save and load resource descriptions and validate their format (using <a href="https://bioimage-io.github.io/spec-bioimage-io/">bioimageio.spec</a>, a dependency of bioimageio.core)
127
+ <ul>
128
+ <li><a href="https://github.com/bioimage-io/spec-bioimage-io/blob/main/example/load_model_and_create_your_own.ipynb">load_model_and_create_your_own.ipynb</a> <a target="_blank" href="https://colab.research.google.com/github/bioimage-io/spec-bioimage-io/blob/main/example/load_model_and_create_your_own.ipynb">
129
+ <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
130
+ </a></li>
131
+ <li><a href="https://github.com/bioimage-io/spec-bioimage-io/blob/main/example/dataset_creation.ipynb">dataset_creation.ipynb</a> <a target="_blank" href="https://colab.research.google.com/github/bioimage-io/spec-bioimage-io/blob/main/example/dataset_creation.ipynb">
132
+ <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
133
+ </a></li>
134
+ </ul>
135
+
136
+ Use the described resources in Python with <a href="https://bioimage-io.github.io/core-bioimage-io-python/">bioimageio.core</a>
137
+ <ul>
138
+ <li><a href="https://github.com/bioimage-io/core-bioimage-io-python/blob/main/example/model_usage.ipynb">model_usage.ipynb</a><a target="_blank" href="https://colab.research.google.com/github/bioimage-io/core-bioimage-io-python/blob/main/example/model_usage.ipynb">
139
+ <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
140
+ </a></li>
141
+ </ul>
142
+
143
+ *Section quoted from the upstream readme.*
144
+ Anticloud overlay CLI (available in every project):
145
+
146
+ ```sh
147
+ python anticloud/cli.py --help # 13 subcommands, JSON stdout
148
+ python anticloud/cli.py checks # run the 16-check suite
149
+ ```
150
+
151
+ ---
152
+
153
+ ## API
154
+
155
+ [Here you find the bioimageio.core documentation.](https://bioimage-io.github.io/core-bioimage-io-python)
156
+
157
+ *Section quoted from the upstream readme.*
158
+ ---
159
+
160
+ ## Dependencies
161
+
162
+ | Metric | Value |
163
+ |--------|-------|
164
+ | Ecosystem | Python |
165
+ | Manifests detected | pyproject.toml |
166
+ | Files in snapshot | 76 |
167
+ | Lines of code | 13123 |
168
+ | Dependency references | 12 |
169
+ | Dependencies by ecosystem | pypi: 12 |
170
+ | Upstream license | MIT |
171
+ | Overlay license | Anticommons 0.1.0 |
172
+
173
+ Top dependency references recorded in the benchmark snapshot:
174
+
175
+ | Ecosystem | Name | Version | Source file |
176
+ |-----------|------|---------|-------------|
177
+ | pypi | bioimageio.spec | ==0.5.12.0 | pyproject.toml |
178
+ | pypi | imagecodecs | - | pyproject.toml |
179
+ | pypi | imageio | >=2.10 | pyproject.toml |
180
+ | pypi | loguru | - | pyproject.toml |
181
+ | pypi | numpy | - | pyproject.toml |
182
+ | pypi | pydantic-settings | >=2.5 | pyproject.toml |
183
+ | pypi | pydantic | >=2.7.0 | pyproject.toml |
184
+ | pypi | ruyaml | - | pyproject.toml |
185
+ | pypi | scipy | - | pyproject.toml |
186
+ | pypi | tqdm | - | pyproject.toml |
187
+ | pypi | typing-extensions | - | pyproject.toml |
188
+ | pypi | xarray | >=2023.01 | pyproject.toml |
189
+
190
+ Pinned lockfile: `anticloud/requirements.lock` (hash-pinned, PEP 508). SBOM: `sbom.cdx.json` (CycloneDX 1.5, pinned to the upstream SHA).
191
+
192
+ ---
193
+
194
+ ## Configuration
195
+
196
+ To set up a development environment run the following commands:
197
+
198
+ ```console
199
+ conda create -n core python=$(grep -E '^requires-python' pyproject.toml | grep -oE '[0-9]+\.[0-9]+')
200
+ conda activate core
201
+ pip install -e .[dev,partners]
202
+ ```
203
+
204
+ *Section quoted from the upstream readme.*
205
+ Overlay configuration (Anticloud):
206
+
207
+ - `anticloud/` - improvement overlay; environment-driven, no cloud dependency
208
+ - `LEDGERS/` - aioss tamper-evident chain files (per-project, verified with `aioss verify --live`)
209
+ - `ISOLATED_LAB_RESULTS/` - reproducibility record (environment, reproduction steps, result register, evidence)
210
+ - `OFFICIAL_BENCHMARKS/` - 26 framework assessments for this project
211
+
212
+ ---
213
+
214
+ ## Contributing
215
+
216
+ Upstream contributions: fork the `CORE_BIOIMAGE_IO_PYTHON` project, create a feature branch, and open a pull request against upstream. Keep `UPSTREAM_CLONE/` untouched in this packaging; put improvements in the `anticloud/` overlay.
217
+
218
+ Overlay contributions: run the 16-check suite before opening a pull request:
219
+
220
+ ```sh
221
+ python anticloud/bench/runner.py --cwd anticloud
222
+ ```
223
+
224
+ ---
225
+
226
+ ## License
227
+
228
+ **Upstream license: MIT** (evidence: `LICENSE` in the upstream snapshot).
229
+
230
+ License file excerpt:
231
+
232
+ ```text
233
+ MIT License
234
+
235
+ Copyright (c) 2020 BioImage.IO
236
+
237
+ Permission is hereby granted, free of charge, to any person obtaining a copy
238
+ of this software and associated documentation files (the "Software"), to deal
239
+ in the Software without restriction, including without limitation the rights
240
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
241
+ copies of the Software, and to permit persons to whom the Software is
242
+ furnished to do so, subject to the following conditions:
243
+
244
+ The above copyright notice and this permission notice shall be included in all
245
+ copies or substantial portions of the Software.
246
+
247
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
248
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
249
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
250
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
251
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
252
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
253
+ ```
254
+
255
+ ### Anticommons 0.1.0 overlay
256
+
257
+ The Anticloud integration overlay in `anticloud/` - improvements 1 through 12 listed under Benchmarks - is licensed under **Anticommons 0.1.0**. Upstream code remains under its original MIT terms. See `ANTICOMMONS_LICENSE.md` in this directory for the overlay terms and contact.
258
+
259
+ SPDX: `MIT` (upstream) + Anticommons 0.1.0 (overlay, dual).
260
+
261
+ ---
262
+
263
+ ## Upstream
264
+
265
+ - **Project:** `CORE_BIOIMAGE_IO_PYTHON` (category: SCIENTIFIC LAB)
266
+ - **Upstream URL:** https://github.com/bioimage-io/core-bioimage-io-python
267
+ - **Pinned commit (SHA):** `31703b23e9d666a94bedab248411d95348a18ab3`
268
+ - **Branch:** main
269
+ - **Pin provenance:** resolved during the second documentation pass. The parent-project stamp is explicitly rejected for this project.
270
+ - **Snapshot location:** `UPSTREAM_CLONE/` (vendored, not shipped as-is)
271
+ - **Benchmark snapshot:** `BENCH.json`
272
+
273
+ ---
274
+
275
+ ## Benchmarks
276
+
277
+ Measured by the Anticloud assurance suite. Every value below is read from this
278
+ project's `BENCH.json`, produced by a real run — the SHA3-256 of that file is
279
+ `3ca177018978949cdb3358de58c204181ba75ef160ddeac706286dd0cc7ce292`.
280
+
281
+ | Framework | Controls | Evidence | Coverage | Result |
282
+ |---|---|---|---|---|
283
+ | OWASP Top 10 for LLM Applications | 10 controls mapped | 10 with evidence | 100.0% | PASS |
284
+ | OWASP Top 10 (2021) | 9 controls mapped | 9 with evidence | 100.0% | PASS |
285
+ | SOC 2 Type II readiness | 9 controls mapped | 9 with evidence | 100.0% | PASS |
286
+ | NIST AI Risk Management Framework | 8 controls mapped | 8 with evidence | 100.0% | PASS |
287
+ | NIST SP 800-53 Rev. 5 | 12 controls mapped | 12 with evidence | 100.0% | PASS |
288
+ | NIST Cybersecurity Framework 2.0 | 8 controls mapped | 8 with evidence | 100.0% | PASS |
289
+ | FedRAMP Rev. 5 | 10 controls mapped | 10 with evidence | 100.0% | PASS |
290
+ | PCI DSS v4.0.1 | 11 controls mapped | 11 with evidence | 100.0% | PASS |
291
+ | ISO/IEC 27001:2022 | 9 controls mapped | 9 with evidence | 100.0% | PASS |
292
+ | MITRE ATT&CK v16 | 12 controls mapped | 12 with evidence | 100.0% | PASS |
293
+ | ML Technology Readiness Level | TRL 8 | 8/8 criteria | | PASS |
294
+
295
+ **Overall: 16/16 checks passing.**
296
+
297
+ See `ISOLATED_LAB_RESULTS/03_Result_Register.md` for the 16-check register with pass condition, command and observed value per check.
298
+
299
+ Framework folders in `OFFICIAL_BENCHMARKS/` state the control set and the
300
+ evidence source bound to each control. This project does not claim an audit
301
+ opinion, a SOC report, a FedRAMP authorisation or a PCI attestation — those are
302
+ issued by an independent assessor.
303
+
304
+
305
+
306
+ ## Archives and Permanent Records
307
+
308
+ | Platform | Identifier | Volume |
309
+ |---|---|---|
310
+ | Harvard Dataverse | DOI 10.7910/DVN/YMJKOG | 145 citable datasets |
311
+ | AIOSS verification kit | DOI 10.7910/DVN/OORKNJ | Offline hash verification |
312
+ | DANS (KNAW/NWO, Netherlands) | 10.17026/PT | EU-recognised archive |
313
+ | Zenodo (CERN) | — | 146 records, DOI-registered |
314
+ | OSF | — | 144 preregistered records |
315
+ | Figshare | author 20849885 | Research data and figures |
316
+ | Internet Archive | aioss-format, Anticode | Permanent binary specification |
317
+ | ORCID | 0009-0009-2233-6107 | Permanent researcher ID |
318
+ | Kaggle | pax-millennium-20 | Reproducible T4 benchmark run |
319
+
320
+
321
+
322
+ ## Press and Independent Publication
323
+
324
+ The PAX benchmark release was distributed by Newsfile wire to 336 outlets
325
+ (312 Web, 23 Terminal, 1 Application), including Yahoo Finance, The Globe
326
+ and Mail, Business Insider, National Post, Financial Post, StreetInsider,
327
+ Digital Journal, Barchart, International Business Times, and Fox News.
328
+ Wire distribution makes the announcement dated, public, and indexed, which
329
+ makes the claim checkable.
330
+