https://github.com/cedergrouphub/temextraction-webapp
https://github.com/cedergrouphub/temextraction-webapp
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cedergrouphub/temextraction-webapp
- Owner: CederGroupHub
- Created: 2021-11-11T20:17:11.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-23T18:09:39.000Z (over 4 years ago)
- Last Synced: 2025-09-09T23:38:56.860Z (10 months ago)
- Language: Jupyter Notebook
- Size: 86.5 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Setup Instructions
## Model Weights
1) Download [SRCNN weights](https://drive.google.com/file/d/1zmBxzC9SVJm9vciOPLbKzVIVlH09UZtW/view?usp=sharing) and place it in `server/label_scale_bar_detector/OCR/SRCNN-pytorch/weights/`.
2) Download [Darknet weights](https://drive.google.com/file/d/1CR0chidAN8x7LLWcLHYz4QR7pHfsQB8-/view?usp=sharing) and place it in `server/label_scale_bar_detector/localizer/darknet/backup`.
3) Download [Mask RCNN weights](https://drive.google.com/file/d/1JwXbYScYNlds5g5JHFwEZLwI5eShyaj4/view?usp=sharing) and place it in `server/Mask_RCNN/logs/tem`.
## Installation
Run `conda env create -f environment.yml`.
Note: Installation using this yml file has been tested only on MACOSX.
# Running the app
1) `export CORS_DEBUG="True"`
2) `cd client && npm start`.
3) `cd server && uvicorn main:app --reload`.
The following is an illustration of the results displayed when a sample TEM image is uploaded.

# Acknowledgements
1) [https://github.com/AlexeyAB/darknet](https://github.com/AlexeyAB/darknet)
2) [https://github.com/yjn870/SRCNN-pytorch](https://github.com/yjn870/SRCNN-pytorch)
3) [https://github.com/matterport/Mask_RCNN](https://github.com/matterport/Mask_RCNN)
# Citation
If you use this code, please cite the following [manuscript](https://arxiv.org/abs/2112.01689):
```
@misc{subramanian2021dataset,
title={Dataset of gold nanoparticle sizes and morphologies extracted from literature-mined microscopy images},
author={Akshay Subramanian and Kevin Cruse and Amalie Trewartha and Xingzhi Wang and Paul Alivisatos and Gerbrand Ceder},
year={2021},
eprint={2112.01689},
archivePrefix={arXiv},
primaryClass={cond-mat.mtrl-sci}
}
```