Skip to content

Commit

Permalink
docs: auto generated by furiosa-models#167
Browse files Browse the repository at this point in the history
related commit: b28d3a4
  • Loading branch information
furiosa-infra committed Aug 21, 2023
1 parent 02c9ef0 commit 3fbfb53
Show file tree
Hide file tree
Showing 29 changed files with 2,294 additions and 730 deletions.
49 changes: 19 additions & 30 deletions PR-167/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,32 +108,6 @@



<div class="md-header__option">
<div class="md-select">

<button class="md-header__button md-icon" aria-label="Select language">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m12.87 15.07-2.54-2.51.03-.03A17.52 17.52 0 0 0 14.07 6H17V4h-7V2H8v2H1v2h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04M18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12m-2.62 7 1.62-4.33L19.12 17h-3.24Z"/></svg>
</button>
<div class="md-select__inner">
<ul class="md-select__list">

<li class="md-select__item">
<a href="/furiosa-models/./" hreflang="en" class="md-select__link">
English
</a>
</li>

<li class="md-select__item">
<a href="/furiosa-models/./ko/" hreflang="ko" class="md-select__link">
한국어
</a>
</li>

</ul>
</div>
</div>
</div>


<label class="md-header__button md-icon" for="__search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
Expand Down Expand Up @@ -264,6 +238,21 @@



<li class="md-nav__item">
<a href="/furiosa-models/user_guide/" class="md-nav__link">
Furiosa Model Zoo User Guide
</a>
</li>










<li class="md-nav__item">
<a href="/furiosa-models/model_object/" class="md-nav__link">
Model object
Expand Down Expand Up @@ -302,17 +291,17 @@



<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5" >
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >



<label class="md-nav__link" for="__nav_5" id="__nav_5_label" tabindex="0">
<label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
Models
<span class="md-nav__icon md-icon"></span>
</label>

<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_5_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_5">
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_6">
<span class="md-nav__icon md-icon"></span>
Models
</label>
Expand Down
49 changes: 19 additions & 30 deletions PR-167/changelog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,32 +119,6 @@



<div class="md-header__option">
<div class="md-select">

<button class="md-header__button md-icon" aria-label="Select language">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m12.87 15.07-2.54-2.51.03-.03A17.52 17.52 0 0 0 14.07 6H17V4h-7V2H8v2H1v2h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04M18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12m-2.62 7 1.62-4.33L19.12 17h-3.24Z"/></svg>
</button>
<div class="md-select__inner">
<ul class="md-select__list">

<li class="md-select__item">
<a href="./" hreflang="en" class="md-select__link">
English
</a>
</li>

<li class="md-select__item">
<a href="../ko/changelog/" hreflang="ko" class="md-select__link">
한국어
</a>
</li>

</ul>
</div>
</div>
</div>


<label class="md-header__button md-icon" for="__search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
Expand Down Expand Up @@ -275,6 +249,21 @@



<li class="md-nav__item">
<a href="../user_guide/" class="md-nav__link">
Furiosa Model Zoo User Guide
</a>
</li>










<li class="md-nav__item">
<a href="../model_object/" class="md-nav__link">
Model object
Expand Down Expand Up @@ -313,17 +302,17 @@



<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5" >
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >



<label class="md-nav__link" for="__nav_5" id="__nav_5_label" tabindex="0">
<label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
Models
<span class="md-nav__icon md-icon"></span>
</label>

<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_5_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_5">
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_6">
<span class="md-nav__icon md-icon"></span>
Models
</label>
Expand Down
49 changes: 19 additions & 30 deletions PR-167/command_tool/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,32 +119,6 @@



<div class="md-header__option">
<div class="md-select">

<button class="md-header__button md-icon" aria-label="Select language">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m12.87 15.07-2.54-2.51.03-.03A17.52 17.52 0 0 0 14.07 6H17V4h-7V2H8v2H1v2h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04M18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12m-2.62 7 1.62-4.33L19.12 17h-3.24Z"/></svg>
</button>
<div class="md-select__inner">
<ul class="md-select__list">

<li class="md-select__item">
<a href="./" hreflang="en" class="md-select__link">
English
</a>
</li>

<li class="md-select__item">
<a href="../ko/command_tool/" hreflang="ko" class="md-select__link">
한국어
</a>
</li>

</ul>
</div>
</div>
</div>


<label class="md-header__button md-icon" for="__search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
Expand Down Expand Up @@ -275,6 +249,21 @@



<li class="md-nav__item">
<a href="../user_guide/" class="md-nav__link">
Furiosa Model Zoo User Guide
</a>
</li>










<li class="md-nav__item">
<a href="../model_object/" class="md-nav__link">
Model object
Expand Down Expand Up @@ -382,17 +371,17 @@



<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5" >
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >



<label class="md-nav__link" for="__nav_5" id="__nav_5_label" tabindex="0">
<label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
Models
<span class="md-nav__icon md-icon"></span>
</label>

<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_5_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_5">
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_6">
<span class="md-nav__icon md-icon"></span>
Models
</label>
Expand Down
49 changes: 19 additions & 30 deletions PR-167/developers-guide/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,32 +117,6 @@



<div class="md-header__option">
<div class="md-select">

<button class="md-header__button md-icon" aria-label="Select language">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m12.87 15.07-2.54-2.51.03-.03A17.52 17.52 0 0 0 14.07 6H17V4h-7V2H8v2H1v2h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04M18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12m-2.62 7 1.62-4.33L19.12 17h-3.24Z"/></svg>
</button>
<div class="md-select__inner">
<ul class="md-select__list">

<li class="md-select__item">
<a href="./" hreflang="en" class="md-select__link">
English
</a>
</li>

<li class="md-select__item">
<a href="../ko/developers-guide/" hreflang="ko" class="md-select__link">
한국어
</a>
</li>

</ul>
</div>
</div>
</div>


<label class="md-header__button md-icon" for="__search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
Expand Down Expand Up @@ -273,6 +247,21 @@



<li class="md-nav__item">
<a href="../user_guide/" class="md-nav__link">
Furiosa Model Zoo User Guide
</a>
</li>










<li class="md-nav__item">
<a href="../model_object/" class="md-nav__link">
Model object
Expand Down Expand Up @@ -311,17 +300,17 @@



<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5" >
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >



<label class="md-nav__link" for="__nav_5" id="__nav_5_label" tabindex="0">
<label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
Models
<span class="md-nav__icon md-icon"></span>
</label>

<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_5_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_5">
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_6">
<span class="md-nav__icon md-icon"></span>
Models
</label>
Expand Down
6 changes: 3 additions & 3 deletions PR-167/examples/efficientnet_b0.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from furiosa.models.vision import EfficientNetB0
from furiosa.runtime import session
from furiosa.runtime.sync import create_runner

image = "tests/assets/cat.jpg"

effnetb0 = EfficientNetB0()
with session.create(effnetb0.model_source()) as sess:
with create_runner(effnetb0.model_source()) as runner:
inputs, _ = effnetb0.preprocess(image)
outputs = sess.run(inputs)
outputs = runner.run(inputs)
effnetb0.postprocess(outputs)
6 changes: 3 additions & 3 deletions PR-167/examples/efficientnet_v2_s.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from furiosa.models.vision import EfficientNetV2s
from furiosa.runtime import session
from furiosa.runtime.sync import create_runner

image = "tests/assets/cat.jpg"

effnetv2s = EfficientNetV2s()
with session.create(effnetv2s.model_source()) as sess:
with create_runner(effnetv2s.model_source()) as runner:
inputs, _ = effnetv2s.preprocess(image)
outputs = sess.run(inputs)
outputs = runner.run(inputs)
effnetv2s.postprocess(outputs)
6 changes: 3 additions & 3 deletions PR-167/examples/resnet50.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from furiosa.models.vision import ResNet50
from furiosa.runtime import session
from furiosa.runtime.sync import create_runner

image = "tests/assets/cat.jpg"

resnet50 = ResNet50()
with session.create(resnet50.model_source()) as sess:
with create_runner(resnet50.model_source()) as runner:
inputs, _ = resnet50.preprocess(image)
outputs = sess.run(inputs)
outputs = runner.run(inputs)
resnet50.postprocess(outputs)
6 changes: 3 additions & 3 deletions PR-167/examples/ssd_mobilenet.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from furiosa.models.vision import SSDMobileNet
from furiosa.runtime import session
from furiosa.runtime.sync import create_runner

image = ["tests/assets/cat.jpg"]

mobilenet = SSDMobileNet()
with session.create(mobilenet.model_source()) as sess:
with create_runner(mobilenet.model_source()) as runner:
inputs, contexts = mobilenet.preprocess(image)
outputs = sess.run(inputs)
outputs = runner.run(inputs)
mobilenet.postprocess(outputs, contexts[0])
8 changes: 4 additions & 4 deletions PR-167/examples/ssd_mobilenet_native.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from furiosa.models.vision import SSDMobileNet
from furiosa.runtime import session
from furiosa.runtime.sync import create_runner

image = ["tests/assets/cat.jpg"]

mobilenet = SSDMobileNet("Rust")
with session.create(mobilenet.model_source()) as sess:
mobilenet = SSDMobileNet(postprocessor_type="Rust")
with create_runner(mobilenet.model_source()) as runner:
inputs, contexts = mobilenet.preprocess(image)
outputs = sess.run(inputs)
outputs = runner.run(inputs)
mobilenet.postprocess(outputs, contexts[0])
8 changes: 4 additions & 4 deletions PR-167/examples/ssd_mobilenet_onnx.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from furiosa.models.vision import SSDMobileNet
from furiosa.quantizer import quantize
from furiosa.runtime import session
from furiosa.runtime.sync import create_runner

compiler_config = {"lower_tabulated_dequantize": True}

Expand All @@ -14,7 +14,7 @@
# for more details
quantized_onnx = quantize(onnx_model, calib_range)

with session.create(quantized_onnx, compiler_config=compiler_config) as sess:
inputs, contexts = mobilenet.preprocess(image, with_quantize=True)
outputs = sess.run(inputs)
with create_runner(quantized_onnx, compiler_config=compiler_config) as runner:
inputs, contexts = mobilenet.preprocess(image, with_scaling=True)
outputs = runner.run(inputs)
mobilenet.postprocess(outputs, contexts[0])
Loading

0 comments on commit 3fbfb53

Please sign in to comment.