Skip to content

Commit 2db08b0

Browse files
fixed typos in the directory paths
1 parent ecb325b commit 2db08b0

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

dataset_collection_framework/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ The two transmission flows (Wifi & bluetoot) are totally indipendent, a python s
1111
The repository of the dataset framework collector is so structured:
1212
1. **STM32 code** for the drone's state acquisition and bluetooth transmission -> `crazyflie_firmware_patch/`
1313
2. **AI-deck code** for camera acquisition and wifi transmission -> `GAP8_streamer/`
14-
2. **Python app** with the dataset collector framwork Graphical User Interface (GUI), which receives the images and state on the laptop, and label's post processing scripts -> `dataset_collector/`
14+
2. **Python app** with the dataset collector framwork Graphical User Interface (GUI), which receives the images and state on the laptop, and label's post processing scripts -> `dataset_collector_python/`
1515

1616
# How to setup dataset collector framework
1717

18-
Make sure to clone recursively
18+
Make sure to cloned recursively
1919

2020
~~~~~shell
21-
git clone git@bitbucket.org:autonomouscv/dataset_collector_framework.git --recursive
21+
git clone git@github.com:pulp-platform/pulp-dronet.git --recursive
2222
~~~~~
2323

2424
To get the datasetcollector app running there are three main steps required:
@@ -27,9 +27,9 @@ To get the datasetcollector app running there are three main steps required:
2727

2828
**2. Flash the firmware on the AI Deck** -> `GAP8_streamer/`
2929

30-
**3. Open the dataset collector python app** -> `dataset_collector/`
30+
**3. Open the dataset collector python app** -> `dataset_collector_python/`
3131

32-
**4. Collect a new dataset** -> stored in `dataset_collector/dataset/`
32+
**4. Collect a new dataset** -> stored in `dataset_collector_python/dataset/`
3333

3434
### Prerequisites:
3535

@@ -127,7 +127,7 @@ Now the AI Deck software is up and running, and it is streaming images via Wi-Fi
127127
- To get the image streamer working some files inside the gap sdk hade been changed. The modified files are stored in `GAP8_streamer/gap_sdk_modified`. Therefore, the `Makefile` masks some files of the original gap_sdk to include these files that have been modified. By doing so, you don't have to modify the SDK.
128128

129129
**NINA firmware:**
130-
we developed our application using some specific NINA firmware. If you buy a new AI deck is probably not compatible.
130+
we developed our application using some specific NINA firmware. If you buy a new AI deck is probably not compatible.
131131

132132
Follow the [instructions here](https://github.com/LorenzoLamberti94/NINA-flashing-crazyflie).
133133

@@ -150,7 +150,7 @@ conda env create -f conda_dependencies.yml
150150
Now we can open the Dataset Collector User interface with the following command: (**NOTE:** First you must plug in a joystick to control the crazyflie)
151151

152152
~~~~
153-
cd dataset_collector/
153+
cd dataset_collector_python/
154154
conda activate dataset_collection_framework
155155
python datasetcollector_main.py
156156
~~~~
@@ -219,11 +219,11 @@ Left side of the Dataset collector GUI.
219219

220220
## Output of the dataset collector
221221

222-
- **The images will be saved in this folder:** `dataset_collector_framework/dataset_collector/dataset/acquisition#/images`
222+
- **The images will be saved in this folder:** `dataset_collection_framework/dataset_collector_python/dataset/acquisition#/images`
223223

224-
- **The drone's state will be saved in this `csv` file:** `dataset_collector_framework/dataset_collector/dataset/acquisition#/state_labels_DroneState.csv`
224+
- **The drone's state will be saved in this `csv` file:** `dataset_collection_framework/dataset_collector_python/dataset/acquisition#/state_labels_DroneState.csv`
225225

226-
**NOTE:** each acquisition will not overwrite the previous one. Each acquisition will create a new folder inside the `dataset_collector_framework/dataset_collector/dataset/` folder with consecutive numbering (`acquisition1`, `acquisition2`, ...).
226+
**NOTE:** each acquisition will not overwrite the previous one. Each acquisition will create a new folder inside the `dataset_collection_framework/dataset_collector_python/dataset/` folder with consecutive numbering (`acquisition1`, `acquisition2`, ...).
227227

228228
# Post-processing the dataset labels
229229

@@ -235,15 +235,15 @@ This script does so.
235235

236236
**Inputs:**
237237

238-
`--data_path` specifies the acquisition# in folder `dataset_collector_framework/dataset_collector/dataset/`. From this folder it authomatically parses:
238+
`--data_path` specifies the acquisition# in folder `dataset_collection_framework/dataset_collector_python/dataset/`. From this folder it authomatically parses:
239239
- the labels in `state_labels_DroneState.csv`
240240
- all the images in the `images/` folder.
241241

242242
**Output:**
243243
- A new .csv file `labeled_images.csv` with correspondence between image-and-state. Extra states collected are removed (the logging rate for the state is higher than the framerate of the images)
244244

245245
~~~~
246-
cd /dataset_collector_framework/dataset_collector/dataset_tools/
246+
cd /dataset_collection_framework/dataset_collector_python/dataset_tools/
247247
python dataset_post_processing.py --data_path=acquisition1
248248
~~~~
249249

@@ -254,7 +254,7 @@ After creating the `labeled_images.csv` we can use the `pulp-dronet/dataset_visu
254254
We also provide inside this repo a lightweight opencv viewer
255255

256256
~~~~
257-
cd /dataset_collector_framework/dataset_collector/dataset_tools/
257+
cd /dataset_collection_framework/dataset_collector_python/dataset_tools/
258258
python image_viewer.py --data_path=acquisition1
259259
~~~~
260260

dataset_collection_framework/dataset_collector_python/dataset_tools/image_viewer_cv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def create_video_opencv(dataset_path, video_name = 'video'):
228228
dataset_path= args.dataset_path
229229
acquisition_folder= args.folder
230230

231-
dataset_path = 'dataset_collector_framework/dataset_collector/dataset'
231+
dataset_path = 'dataset_collection_framework/dataset_collectordataset_collector_python/dataset'
232232
acquisition_folder_path = join(dataset_path,acquisition_folder)
233233

234234
if os.path.exists(acquisition_folder_path):

0 commit comments

Comments
 (0)