-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: auto generated by furiosa-models#167
related commit: b28d3a4
- Loading branch information
1 parent
02c9ef0
commit 3fbfb53
Showing
29 changed files
with
2,294 additions
and
730 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.