Skip to content

Commit

Permalink
some improvments to segment-anything
Browse files Browse the repository at this point in the history
  • Loading branch information
guschmue committed Feb 26, 2024
1 parent f976e64 commit a01228e
Show file tree
Hide file tree
Showing 8 changed files with 2,724 additions and 56 deletions.
3 changes: 0 additions & 3 deletions segment-anything/dist/bundle.min.js

This file was deleted.

50 changes: 0 additions & 50 deletions segment-anything/dist/bundle.min.js.LICENSE.txt

This file was deleted.

2,649 changes: 2,649 additions & 0 deletions segment-anything/dist/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions segment-anything/dist/index.js.map

Large diffs are not rendered by default.

63 changes: 63 additions & 0 deletions segment-anything/dist/index.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions segment-anything/dist/index.min.js.map

Large diffs are not rendered by default.

Binary file modified segment-anything/dist/ort-wasm-simd.jsep.wasm
Binary file not shown.
13 changes: 10 additions & 3 deletions segment-anything/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous" />
<script src="./dist/bundle.min.js"></script>
<script type="module" src="dist/index.js"></script>

<style>
/* Add rounded corners to blocks */
Expand Down Expand Up @@ -71,14 +71,21 @@ <h4>Latencies</h4>
accept=".jpg, .png, .jpeg, .gif, .bmp, .tif, .tiff|image/*">
</div>
</form>
</div>
<div class="form-group ">
<button id="cut-button" type="button" class="btn btn-primary">Cut</button>
<button id="clear-button" type="button" class="btn btn-primary">Clear</button>
</div>
</div>
<div style="margin-top: 30px;">
<div>Other providers:</div>
<a href="index.html?provider=wasm">wasm</a>
<a href="index.html?provider=webgpu">webgpu</a>
<a href="index.html?provider=webnn">webnn</a>
</div>

<div style="margin-top: 30px;">
Click to set a point <br/>
Click and hold ctl to add a point
</div>
</div>

<p class="text-lg-start">
Expand Down

0 comments on commit a01228e

Please sign in to comment.