aoxo commited on
Commit
d904152
·
verified ·
1 Parent(s): b8e1aac

Added feature extracts and preprocessing scripts

Browse files
.gitattributes CHANGED
@@ -57,3 +57,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
57
  *.mp4 filter=lfs diff=lfs merge=lfs -text
58
  *.webm filter=lfs diff=lfs merge=lfs -text
59
  mapillary_v2.0zip filter=lfs diff=lfs merge=lfs -text
 
 
57
  *.mp4 filter=lfs diff=lfs merge=lfs -text
58
  *.webm filter=lfs diff=lfs merge=lfs -text
59
  mapillary_v2.0zip filter=lfs diff=lfs merge=lfs -text
60
+ cyberpunk-china-losangeles.json filter=lfs diff=lfs merge=lfs -text
cyberpunk-china-losangeles.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a58f0a5e8a2fc10305947ba00a91dcf29a951e47b28e6c57067c78f45795904
3
+ size 595116505
cyberpunk_features.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f4744e1ed68c728180ac125b3e2976a03efb517322c8af9d9051ddb69ba3ece
3
+ size 6614554606
dlss.ipynb ADDED
The diff for this file is too large to render. See raw diff
 
extract_frames.sh ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Directory containing the videos
4
+ VIDEO_DIR="/home/tinkerspace/"
5
+ # Directory to store extracted frames
6
+ OUTPUT_DIR="/home/tinkerspace/extracted_frames"
7
+
8
+ # Create the output directory if it doesn't exist
9
+ mkdir -p "$OUTPUT_DIR"
10
+
11
+ # Loop through each video file in the directory
12
+ for video in "$VIDEO_DIR"/*.{mp4,webm}; do
13
+ # Check if the file exists
14
+ [ -e "$video" ] || continue
15
+
16
+ # Get the base name of the video (without extension)
17
+ base_name=$(basename "$video" .${video##*.})
18
+
19
+ # Extract and resize frames using ffmpeg with GPU acceleration
20
+ ffmpeg -hwaccel cuda -i "$video" -vf "fps=5000,scale=224:224" "$OUTPUT_DIR/frame_%04d.png"
21
+ done
gtav-mapillary.json ADDED
The diff for this file is too large to render. See raw diff
 
gtav_features.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c946d285f5d4e82ba2a447b5af902b78d309afbfa241edf751ca2741c45a45c
3
+ size 237736635
mapillary_features.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28db37e20154bdd208c2a2143782939f18e0814c9acbeb1de0270e9d6f797197
3
+ size 190592908
realworld_features.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e0f858caa0e6d6321904b3a65378e7bdb240013a469cb46fc424bfdf156d3e0
3
+ size 10427511890