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
import fiftyone as fo | |
ds = fo.Dataset("test-dataset") | |
print(ds) |
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
import fiftyone as fo | |
ds = fo.Dataset("test-dataset") | |
print(ds) |
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
import fiftyone as fo | |
# create an empty Dataset | |
ds = fo.Dataset("test-dataset") | |
print(ds) |
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
from typing import NamedTuple | |
from typing import List | |
from typing import Callable, Optional | |
import fiftyone as fo | |
import fiftyone.zoo as foz | |
from pathlib import Path | |
import json | |
import numpy as np |
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
import fiftyone as fo | |
ds = fo.load_dataset("imagenet-preds") | |
results = ds.evaluate_classifications( | |
"predictions", | |
gt_field="ground_truth", | |
eval_key="eval_simple" | |
) |
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
import fiftyone as fo | |
from fiftyone import ViewField as F | |
dataset = fo.Dataset("imagenet") | |
# Using array slicing | |
range_view = dataset[2:5] | |
dataset.save_view("range_view", range_view) |
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
{ | |
"0":"tench, Tinca tinca", | |
"1":"goldfish, Carassius auratus", | |
"2":"great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias", | |
"3":"tiger shark, Galeocerdo cuvieri", | |
"4":"hammerhead, hammerhead shark", | |
"5":"electric ray, crampfish, numbfish, torpedo", | |
"6":"stingray", | |
"7":"cock", | |
"8":"hen", |