updated
Browse files
README.md
CHANGED
|
@@ -28,17 +28,20 @@ streamlit run app.py
|
|
| 28 |
Use the [online app](https://huggingface.co/spaces/kaveh/Shape2force) on Hugging Face.
|
| 29 |
|
| 30 |
<p align="center">
|
| 31 |
-
<img src="./S2FApp/res/
|
| 32 |
</p>
|
| 33 |
|
| 34 |
---
|
| 35 |
-
### 3. Jupyter
|
| 36 |
|
| 37 |
-
For interactive usage and custom analysis,
|
| 38 |
|
| 39 |
-
- **`notebooks/
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
-
Once cloned
|
| 42 |
|
| 43 |
---
|
| 44 |
|
|
@@ -51,17 +54,28 @@ Once cloned the repo. open the notebook in Jupyter and adjust the configuration
|
|
| 51 |
|
| 52 |
**Single-cell:**
|
| 53 |
```bash
|
| 54 |
-
python -m training.train
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
```
|
| 56 |
|
| 57 |
**Spheroid:**
|
| 58 |
```bash
|
| 59 |
-
python -m training.train
|
|
|
|
|
|
|
|
|
|
| 60 |
```
|
| 61 |
|
| 62 |
**Resume / fine-tune from checkpoint:**
|
| 63 |
```bash
|
| 64 |
-
python -m training.train
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
```
|
| 66 |
|
| 67 |
---
|
|
|
|
| 28 |
Use the [online app](https://huggingface.co/spaces/kaveh/Shape2force) on Hugging Face.
|
| 29 |
|
| 30 |
<p align="center">
|
| 31 |
+
<img src="./S2FApp/res/ss.png" width="450" alt="Shape2Force Web App" />
|
| 32 |
</p>
|
| 33 |
|
| 34 |
---
|
| 35 |
+
### 3. Jupyter Notebooks
|
| 36 |
|
| 37 |
+
For interactive usage and custom analysis, use the notebooks in `notebooks/`:
|
| 38 |
|
| 39 |
+
- **`notebooks/Singlecell_inference.ipynb`** – Load a folder of brightfield images, run single-cell predictions, plot samples, and save all predictions with metrics.
|
| 40 |
+
- **`notebooks/Singlecell_evaluation.ipynb`** – Evaluate single-cell model on a dataset with ground truth; compute metrics and plot predictions.
|
| 41 |
+
- **`notebooks/Spheroid_inference.ipynb`** – Run spheroid predictions on brightfield images, plot samples, and save predictions.
|
| 42 |
+
- **`notebooks/Spheroid_evaluation.ipynb`** – Evaluate spheroid model on as dataset with ground truth; compute metrics and plot predictions.
|
| 43 |
|
| 44 |
+
Once cloned, open a notebook in Jupyter and adjust the configuration cell (paths, model type, substrate).
|
| 45 |
|
| 46 |
---
|
| 47 |
|
|
|
|
| 54 |
|
| 55 |
**Single-cell:**
|
| 56 |
```bash
|
| 57 |
+
python -m training.train \
|
| 58 |
+
--data path/to/dataset \
|
| 59 |
+
--model single_cell \
|
| 60 |
+
--epochs 100 \
|
| 61 |
+
--substrate fibroblasts_PDMS
|
| 62 |
```
|
| 63 |
|
| 64 |
**Spheroid:**
|
| 65 |
```bash
|
| 66 |
+
python -m training.train \
|
| 67 |
+
--data path/to/dataset \
|
| 68 |
+
--model spheroid \
|
| 69 |
+
--epochs 100
|
| 70 |
```
|
| 71 |
|
| 72 |
**Resume / fine-tune from checkpoint:**
|
| 73 |
```bash
|
| 74 |
+
python -m training.train \
|
| 75 |
+
--data path/to/dataset \
|
| 76 |
+
--model single_cell \
|
| 77 |
+
--resume ckp/last_checkpoint.pth \
|
| 78 |
+
--epochs 150
|
| 79 |
```
|
| 80 |
|
| 81 |
---
|