File size: 1,062 Bytes
2b9ff22
1c80ce5
85ceade
3e0bed9
1c80ce5
 
2b9ff22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63c07ee
2b9ff22
 
 
 
 
 
eb6972c
2b9ff22
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
title: Shape2Force
short_description: Force map prediction from bright-field cell images
emoji: 🦠
colorFrom: indigo
colorTo: blue
tags:
- cell-mechanobiology
- microscopy
- image-to-image
- pytorch
license: cc-by-4.0
sdk: docker
app_port: 8501
---

# Shape2Force (S2F) App

Predict force maps from bright-field microscopy images using deep learning. 

## Quick Start

```bash
pip install -r requirements.txt
streamlit run app.py
```

Checkpoints are downloaded automatically from the [Shape2Force model repo](https://huggingface.co/Angione-Lab/Shape2Force) when running in Docker. For local use, place `.pth` files in `ckp/`.

## Usage

1. Choose **Model type**: Single cell or Spheroid
2. Select a **Checkpoint** from `ckp/`
3. For single-cell: pick **Substrate** (e.g. fibroblasts_PDMS)
4. Upload an image or pick from `samples/`
5. Click **Run prediction**

Output: heatmap, cell force (sum), and basic stats.

## Full Project

For training, evaluation, and notebooks, see the main [Shape2Force repository](https://github.com/Angione-Lab/Shape2Force).