Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[melodic-devel] Implementing Git LFS #52

Merged
merged 3 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rosbag/** filter=lfs diff=lfs merge=lfs -text
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ RUN mkdir -p ~/catkin_ws/src && \
/bin/bash -c "source /opt/ros/melodic/setup.bash ; cd ~/catkin_ws && catkin build" && \
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc

# Install Git LFS
RUN apt-get update && \
apt-get install -y git-lfs && \
rm -rf /var/lib/apt/lists/* && \
git lfs install

# Clone repository and install using pipenv
RUN cd ~/catkin_ws/src && \
git clone -b melodic-devel https://github.com/Alpaca-zip/ultralytics_ros.git && \
Expand All @@ -31,8 +37,3 @@ RUN cd ~/catkin_ws/src && \

# Build the ROS package
RUN cd ~/catkin_ws && catkin build

# Download the dataset
RUN cd ~/ && \
wget --load-cookies /tmp/cookies.txt "https://drive.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://drive.google.com/uc?export=download&id=1FWW3yHq1ZVps5gtm0VGrSmEAX0gGRM2t' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1FWW3yHq1ZVps5gtm0VGrSmEAX0gGRM2t" -O kitti_2011_09_26_drive_0106_synced.bag && \
rm -rf /tmp/cookies.txt
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ROS package for real-time object detection and segmentation using the Ultralytic
## Setup ⚙
```
$ cd ~/catkin_ws/src
$ git clone -b melodic-devel https://github.com/Alpaca-zip/ultralytics_ros.git
$ GIT_LFS_SKIP_SMUDGE=1 git clone -b melodic-devel https://github.com/Alpaca-zip/ultralytics_ros.git
$ rosdep install -r -y -i --from-paths .
$ pip install pipenv
$ cd ultralytics_ros
Expand All @@ -20,6 +20,7 @@ $ pipenv shell
$ cd ~/catkin_ws
$ catkin build
```
**NOTE**: If you want to download KITTI datasets, remove `GIT_LFS_SKIP_SMUDGE=1` from the command line.
## Run 🚀
**`predict_node`**
```
Expand Down Expand Up @@ -114,5 +115,5 @@ $ docker run -p 6080:80 --shm-size=512m alpacazip/ultralytics_ros:melodic
```
$ roscd ultralytics_ros && pipenv shell
$ roslaunch ultralytics_ros kitti_predict_with_cloud.launch
$ cd ~/. && rosbag play kitti_2011_09_26_drive_0106_synced.bag --clock --loop
$ cd ~/catkin_ws/src/ultralytics_ros/rosbag && rosbag play kitti_2011_09_26_drive_0106_synced.bag --clock --loop
```
3 changes: 3 additions & 0 deletions rosbag/kitti_2011_09_26_drive_0106_synced.bag
Git LFS file not shown
Loading