(base) [illya@rockylinux ~]$ conda create -n FiftyOne python=3.9
 
(base) [illya@rockylinux ~]$ conda activate FiftyOne
 
(FiftyOne) [illya@rockylinux ~]$ pip install fiftyone
(FiftyOne) [illya@rockylinux ~]$ pip install fiftyone[desktop]
(FiftyOne) [illya@rockylinux ~]$ pip install pycocotools
 
(FiftyOne) [illya@rockylinux ~]$ python
Python 3.9.12 (main, Apr  5 2022, 06:56:58)
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>> import fiftyone as fo
>>> import fiftyone.zoo as foz
>>> dataset = foz.load_zoo_dataset("quickstart")
>>> session = fo.launch_app(dataset)
App launched. Point your web browser to http://localhost:5151
>>>

ブラウザが立ち上がりFiftyOne のサンプルデータが表示される... だだし結構重いので避けた方がいいかも

>>> print(fo.config)
{
    "database_admin": true,
    "database_dir": "/home/illya/.fiftyone/var/lib/mongo",
    "database_name": "fiftyone",
    "database_uri": null,
    "database_validation": true,
    "dataset_zoo_dir": "/home/illya/fiftyone",
    "dataset_zoo_manifest_paths": null,
    "default_app_address": null,
    "default_app_port": 5151,
    "default_batch_size": null,
    "default_dataset_dir": "/home/illya/fiftyone",
    "default_image_ext": ".jpg",
    "default_ml_backend": null,
    "default_sequence_idx": "%06d",
    "default_video_ext": ".mp4",
    "desktop_app": false,
    "do_not_track": false,
    "model_zoo_dir": "/home/illya/fiftyone/__models__",
    "model_zoo_manifest_paths": null,
    "module_path": null,
    "requirement_error_level": 0,
    "show_progress_bars": true,
    "timezone": null
}
>>>
>>> fo.config.desktop_app = True
>>> session = fo.launch_app(dataset)

2022y05m22d_230948559.png

COCO

....絞らないと145GBほど必要...

(FiftyOne) [illya@rockylinux ~]$ python
 
>>> import fiftyone as fo
>>> dataset = fo.zoo.load_zoo_dataset(
    "coco-2017",
    split="validation",
    label_types=["detections", "segmentations"],
    classes=["person", "car"],
    max_samples=50,
)
>>> 
>>> print(fo.config)
>>> fo.config.desktop_app = True
>>> session = fo.launch_app(dataset)

2022y05m22d_233542431.png

2022y05m22d_233642217.png

条件を変更して

#code(nonumber){{
(FiftyOne) [illya@rockylinux ~]$ python
 
>>> import fiftyone as fo
>>> dataset = fo.zoo.load_zoo_dataset(
    "coco-2017",
    classes=["person", "car"],
    max_samples=50,
)
>>> 
>>> print(fo.config)
>>> fo.config.desktop_app = True
>>> session = fo.launch_app(dataset)

2022y05m22d_234210575.png
2022y05m22d_234855234.png
2022y05m22d_234218487.png


トップ   編集 添付 複製 名前変更     ヘルプ   最終更新のRSS
Last-modified: 2022-05-22 (日) 23:50:10 (35d)