Views
No views yet
S2FApp/:1git clone https://github.com/Angione-Lab/Shape2Force.git
2cd Shape2Force/S2FApp
3pip install -r requirements.txt
4streamlit run app.py.pth) in S2FApp/ckp/ for local use.ckp/samples/
notebooks/:notebooks/Singlecell_inference.ipynb – Load a folder of brightfield images, run single-cell predictions, plot samples, and save all predictions with metrics.notebooks/Singlecell_evaluation.ipynb – Evaluate single-cell model on a dataset with ground truth; compute metrics and plot predictions.notebooks/Spheroid_inference.ipynb – Run spheroid predictions on brightfield images, plot samples, and save predictions.notebooks/Spheroid_evaluation.ipynb – Evaluate spheroid model on as dataset with ground truth; compute metrics and plot predictions.train/ and test/ subfolders. Each subfolder has:BF_001.tif (bright-field image)*_gray.jpg (force map / heatmap).txt (cell_area, sum_force)1python -m training.train \
2 --data path/to/dataset \
3 --model single_cell \
4 --epochs 100 \
5 --substrate fibroblasts_PDMS1python -m training.train \
2 --data path/to/dataset \
3 --model spheroid \
4 --epochs 1001python -m training.train \
2 --data path/to/dataset \
3 --model single_cell \
4 --resume ckp/last_checkpoint.pth \
5 --epochs 150