Skip to content

Commit 8a9a73c

Browse files
Update doc
1 parent 9bd7833 commit 8a9a73c

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

book/metrics/hard-label.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ <h4 id="returns"><a class="header" href="#returns">Returns</a></h4>
249249
# compute the metrics
250250
&gt;&gt;&gt; evaluator.compute_metrics(image_tensor=image_tensor, hard_labels=hard_labels)
251251
# alternatively, you can provide the image path
252-
&gt;&gt;&gt; evaluator.compute_metrics(image_path='path/to/image.png', hard_labels=hard_labels)
252+
&gt;&gt;&gt; evaluator.compute_metrics(image_path='path/to/image/folder/', hard_labels=hard_labels)
253253
</code></pre>
254254
<p>with keyword arguments:</p>
255255
<pre><code class="language-python">&gt;&gt;&gt; evaluator = HardLabelEvaluator(
@@ -279,7 +279,7 @@ <h4 id="returns"><a class="header" href="#returns">Returns</a></h4>
279279
# compute the metrics
280280
&gt;&gt;&gt; evaluator.compute_metrics(image_tensor=image_tensor, hard_labels=hard_labels)
281281
# alternatively, you can provide the image path
282-
&gt;&gt;&gt; evaluator.compute_metrics(image_path='path/to/image.png', hard_labels=hard_labels)
282+
&gt;&gt;&gt; evaluator.compute_metrics(image_path='path/to/image/folder/', hard_labels=hard_labels)
283283
</code></pre>
284284

285285
</main>

book/metrics/soft-label.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ <h3 id="examples"><a class="header" href="#examples">Examples</a></h3>
265265
# compute metrics
266266
&gt;&gt;&gt; evaluator.compute_metrics(image_tensor=image_tensor, soft_labels=soft_labels)
267267
# alternatively, provide image path
268-
&gt;&gt;&gt; evaluator.compute_metrics(image_path='path/to/image.jpg', soft_labels=soft_labels)
268+
&gt;&gt;&gt; evaluator.compute_metrics(image_path='path/to/image/folder/', soft_labels=soft_labels)
269269
</code></pre>
270270
<p>with keyword arguments:</p>
271271
<pre><code class="language-python">&gt;&gt;&gt; evaluator = SoftLabelEvaluator(
@@ -292,7 +292,7 @@ <h3 id="examples"><a class="header" href="#examples">Examples</a></h3>
292292
# compute metrics
293293
&gt;&gt;&gt; evaluator.compute_metrics(image_tensor=image_tensor, soft_labels=soft_labels)
294294
# alternatively, provide image path
295-
&gt;&gt;&gt; evaluator.compute_metrics(image_path='path/to/image.jpg', soft_labels=soft_labels)
295+
&gt;&gt;&gt; evaluator.compute_metrics(image_path='path/to/image/folder/', soft_labels=soft_labels)
296296
</code></pre>
297297

298298
</main>

book/print.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ <h4 id="returns"><a class="header" href="#returns">Returns</a></h4>
406406
# compute the metrics
407407
&gt;&gt;&gt; evaluator.compute_metrics(image_tensor=image_tensor, hard_labels=hard_labels)
408408
# alternatively, you can provide the image path
409-
&gt;&gt;&gt; evaluator.compute_metrics(image_path='path/to/image.png', hard_labels=hard_labels)
409+
&gt;&gt;&gt; evaluator.compute_metrics(image_path='path/to/image/folder/', hard_labels=hard_labels)
410410
</code></pre>
411411
<p>with keyword arguments:</p>
412412
<pre><code class="language-python">&gt;&gt;&gt; evaluator = HardLabelEvaluator(
@@ -436,7 +436,7 @@ <h4 id="returns"><a class="header" href="#returns">Returns</a></h4>
436436
# compute the metrics
437437
&gt;&gt;&gt; evaluator.compute_metrics(image_tensor=image_tensor, hard_labels=hard_labels)
438438
# alternatively, you can provide the image path
439-
&gt;&gt;&gt; evaluator.compute_metrics(image_path='path/to/image.png', hard_labels=hard_labels)
439+
&gt;&gt;&gt; evaluator.compute_metrics(image_path='path/to/image/folder/', hard_labels=hard_labels)
440440
</code></pre>
441441
<div style="break-before: page; page-break-before: always;"></div><h2 id="softlabelevaluator"><a class="header" href="#softlabelevaluator">SoftLabelEvaluator</a></h2>
442442
<div style="background-color:#F7F7F7; padding:15px; border:1px solid #E0E0E0; border-top:3px solid #FF0000; font-family:monospace; font-size:14px;">
@@ -548,7 +548,7 @@ <h3 id="examples"><a class="header" href="#examples">Examples</a></h3>
548548
# compute metrics
549549
&gt;&gt;&gt; evaluator.compute_metrics(image_tensor=image_tensor, soft_labels=soft_labels)
550550
# alternatively, provide image path
551-
&gt;&gt;&gt; evaluator.compute_metrics(image_path='path/to/image.jpg', soft_labels=soft_labels)
551+
&gt;&gt;&gt; evaluator.compute_metrics(image_path='path/to/image/folder/', soft_labels=soft_labels)
552552
</code></pre>
553553
<p>with keyword arguments:</p>
554554
<pre><code class="language-python">&gt;&gt;&gt; evaluator = SoftLabelEvaluator(
@@ -575,7 +575,7 @@ <h3 id="examples"><a class="header" href="#examples">Examples</a></h3>
575575
# compute metrics
576576
&gt;&gt;&gt; evaluator.compute_metrics(image_tensor=image_tensor, soft_labels=soft_labels)
577577
# alternatively, provide image path
578-
&gt;&gt;&gt; evaluator.compute_metrics(image_path='path/to/image.jpg', soft_labels=soft_labels)
578+
&gt;&gt;&gt; evaluator.compute_metrics(image_path='path/to/image/folder/', soft_labels=soft_labels)
579579
</code></pre>
580580
<div style="break-before: page; page-break-before: always;"></div><h2 id="generalevaluator"><a class="header" href="#generalevaluator">GeneralEvaluator</a></h2>
581581
<div style="background-color:#F7F7F7; padding:15px; border:1px solid #E0E0E0; border-top:3px solid #FF0000; font-family:monospace; font-size:14px;">

book/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

book/searchindex.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)