You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HELLO! I'm just a new guy to use the fiftyone which is a good tool. I want to open my own datasets in yolov8 format and see the marked rectangle box. It can add sample to my dataset but turn to be wrong when it opens the fiftyone website and report an error "No dataset selected"
Code to reproduce issue
import glob
import os
import fiftyone as fo
from fiftyone import Sample, Detection, Dataset
OS Platform and Distribution (e.g., Linux Ubuntu 22.04):Windows
Python version (python --version):3.10.14
FiftyOne version (fiftyone --version):0.24.1
FiftyOne installed from (pip or source):pip
Other info/logs
Include any logs or source code that would be helpful to diagnose the problem.
If including tracebacks, please include the full traceback. Large logs and
files should be attached. Please do not use screenshots for sharing text. Code
snippets should be used instead when providing tracebacks, logs, etc.
Willingness to contribute
The FiftyOne Community encourages bug fix contributions. Would you or another
member of your organization be willing to contribute a fix for this bug to the
FiftyOne codebase?
Yes. I can contribute a fix for this bug independently
[√ ] Yes. I would be willing to contribute a fix for this bug with guidance
from the FiftyOne community
No. I cannot contribute a bug fix at this time
The text was updated successfully, but these errors were encountered:
Describe the problem
HELLO! I'm just a new guy to use the fiftyone which is a good tool. I want to open my own datasets in yolov8 format and see the marked rectangle box. It can add sample to my dataset but turn to be wrong when it opens the fiftyone website and report an error "No dataset selected"
Code to reproduce issue
import glob
import os
import fiftyone as fo
from fiftyone import Sample, Detection, Dataset
图片和YOLO标注文件的路径
images_dir = r"D:/auto_Detection/鸟类检测/数据集/fiftyone下载10000/train/images"
annotations_dir = r"D:/auto_Detection/鸟类检测/数据集/fiftyone下载10000/train/labels"
支持的类别
classes = ["bird"] # 根据你的数据集替换类别列表
获取所有图片路径
images_patt = os.path.join(images_dir, "*.jpg") # 假设图片是.jpg格式
image_paths = glob.glob(images_patt)
创建数据集
dataset_name = "bird_dataset"
dataset = Dataset(name=dataset_name)
遍历所有图片
for image_path in image_paths:
# 生成YOLO标注文件的完整路径
annotation_path = os.path.join(annotations_dir, os.path.splitext(os.path.basename(image_path))[0] + ".txt")
启动FiftyOne App并可视化标注的矩形框
session= fo.launch_app(dataset)
session.wait()
System information
python --version
):3.10.14fiftyone --version
):0.24.1Other info/logs
Include any logs or source code that would be helpful to diagnose the problem.
If including tracebacks, please include the full traceback. Large logs and
files should be attached. Please do not use screenshots for sharing text. Code
snippets should be used instead when providing tracebacks, logs, etc.
Willingness to contribute
The FiftyOne Community encourages bug fix contributions. Would you or another
member of your organization be willing to contribute a fix for this bug to the
FiftyOne codebase?
from the FiftyOne community
The text was updated successfully, but these errors were encountered: