Skip to content

Commit

Permalink
Merge pull request #106 from tldr-group/manual_fixes
Browse files Browse the repository at this point in the history
merge manual fixes onto main
  • Loading branch information
rmdocherty authored Jan 19, 2024
2 parents dcb7f9f + 146609f commit c9b14cf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

![Tests](https://github.com/tldr-group/samba-web/actions/workflows/tests.yml/badge.svg)

<!-- ![Diagram showing (a) different labelling types in SAMBA, (b) impact of scale parameter on smart labelling and (c) output segmentation ](docs/gui.png) -->


`SAMBA` (Segment Anything Model Based App) is a trainable segmentation tool for materials science that uses [deep learning](https://github.com/facebookresearch/segment-anything) for fast, high-quality labels and random forests for robust, generalizable segmentations. It is accessible in the browser ([https://www.sambasegment.com](https://www.sambasegment.com)), without the need to download any external dependencies. This repo is a local version of the website which contains the frontend for the website (React + TSX) and the backend (Python + Flask). The frontend handles labelling and the backend sends back SAM embeddings (if requested) and segmentations.
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Modals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const WelcomeModalContent = () => {
</Modal.Header>
<Modal.Body>
<p>SAMBA is a <b>web-based trainable segmentation app</b>. It has deep-learning powered label suggestions and a random-forest classifier backend.</p>
<p>Load an image, choose your brush on the sidebar and place some labels with <b>left click</b>. Zoom with the <b>scroll wheel</b> and pan with <b>arrow keys</b> or <b>WASD</b>. <b>Right click</b> to change the smart label focus size or to finish a polygon. Once you've labelled an example of each class, press <b>"Train Classifier"</b> to segment the image. If you still need help, check out the <a href="https://github.com/tldr-group/samba-web/manual.md">manual</a> or watch a <a href="coming-soon">video tutorial</a>. Have fun!</p>
<p>Load an image, choose your brush on the sidebar and place some labels with <b>left click</b>. Zoom with the <b>scroll wheel</b> and pan with <b>arrow keys</b> or <b>WASD</b>. <b>Right click</b> to change the smart label focus size or to finish a polygon. Once you've labelled an example of each class, press <b>"Train Classifier"</b> to segment the image. If you still need help, check out the <a href="https://github.com/tldr-group/samba-web/blob/main/MANUAL.md" target="_blank">manual</a> or watch a <a href="coming-soon">video tutorial</a>. Have fun!</p>
<p>Hotkeys:</p>
<ul>
<li><b>Left Click:</b> place label/polygon point. Hold to draw brush stroke, release to finish.</li>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Topbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const Topbar = ({ loadFromFile, loadLabelFile, deleteAll, deleteCurrent, saveSeg
["Settings", "settings.png", "", ''],
["Gallery", "gallery.png", "", ''],
["Paper", "paper.png", "coming_soon", '_blank'],
["Help", "help.png", "https://github.com/tldr-group/samba-web/blob/development/MANUAL.md", '_blank'],
["Help", "help.png", "https://github.com/tldr-group/samba-web/blob/main/MANUAL.md", '_blank'],
["Contact", "mail.png", "", ""],
["TLDR Group", "tldr.png", "https://tldr-group.github.io/#/", '_blank']
]
Expand Down

0 comments on commit c9b14cf

Please sign in to comment.