SongTang commited on
Commit
3ca204f
·
verified ·
1 Parent(s): 5f80312

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -42
README.md CHANGED
@@ -60,7 +60,7 @@ Each sample contains:
60
 
61
  ## Usage
62
 
63
- ### Load with APRS Dataset Class (Recommended)
64
 
65
  ```python
66
  from aprs import APRSDataset
@@ -82,47 +82,6 @@ image = sample.load_image()
82
  box_pixels = sample.box_pixels() # (x, y, w, h) in pixels
83
  ```
84
 
85
- ### Load with Hugging Face Datasets
86
-
87
- ```python
88
- from datasets import load_dataset
89
-
90
- # Load the dataset (images are stored separately, not embedded)
91
- dataset = load_dataset("parquet", data_files={
92
- "train": "hf://datasets/FudanCVL/APRS_dataset/data/train.parquet",
93
- "test": "hf://datasets/FudanCVL/APRS_dataset/data/test.parquet"
94
- })
95
-
96
- # Access train/test splits
97
- train_data = dataset["train"]
98
- test_data = dataset["test"]
99
-
100
- # Iterate over samples
101
- for sample in train_data:
102
- filename = sample["Filename"]
103
- description = sample["Description"]
104
- category = sample["Category"]
105
- theta = sample["Pt_Theta"]
106
- phi = sample["Pt_Phi"]
107
- image_path = sample["image_path"] # Relative path like "train/xxx.jpg"
108
- ```
109
-
110
- ### Load with Pandas
111
-
112
- ```python
113
- import pandas as pd
114
- from PIL import Image
115
-
116
- # Load annotations
117
- train_df = pd.read_parquet("hf://datasets/FudanCVL/APRS_dataset/data/train.parquet")
118
- test_df = pd.read_parquet("hf://datasets/FudanCVL/APRS_dataset/data/test.parquet")
119
-
120
- # Access a sample
121
- sample = train_df.iloc[0]
122
- print(f"Description: {sample['Description']}")
123
- print(f"Category: {sample['Category']}")
124
- print(f"Spherical coords: θ={sample['Pt_Theta']:.2f}°, φ={sample['Pt_Phi']:.2f°}")
125
- ```
126
 
127
  ### Interactive 360° Visualization
128
 
 
60
 
61
  ## Usage
62
 
63
+ ### Load with APRS Dataset Class
64
 
65
  ```python
66
  from aprs import APRSDataset
 
82
  box_pixels = sample.box_pixels() # (x, y, w, h) in pixels
83
  ```
84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
 
86
  ### Interactive 360° Visualization
87