FutureFabrik commited on
Commit
3702795
·
verified ·
1 Parent(s): 495f293

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +27 -0
README.md CHANGED
@@ -10,5 +10,32 @@ pinned: false
10
  license: mit
11
  short_description: Extract and arrange frames for large datasets.
12
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
10
  license: mit
11
  short_description: Extract and arrange frames for large datasets.
12
  ---
13
+ Important Things to Note
14
+ Input Format:
15
+
16
+ ZIP Files: Each camera folder should be compressed into a ZIP file. The ZIP file’s name (without the extension) is used as the camera identifier.
17
+ Regex Pattern: The pattern must include one capturing group that extracts the numeric frame value from file names.
18
+ Example: For files named like cam1_00180000, use _(\d+).
19
+ Frame Range: Provide the actual numeric values appearing in your file names for the start and end frames. For example, for frames cam1_00180000 to cam1_00183015, set:
20
+ Start Frame: 180000
21
+ End Frame: 183015
22
+ Frame Index Calculation:
23
+
24
+ The frame index is computed as:
25
+ frame_index = extracted_number - start_frame + 1
26
+ This means the file with the frame number equal to the start frame becomes “Frame_1.”
27
+ Output Structure:
28
+
29
+ The application creates a folder for each frame index (e.g., Frame_1, Frame_2, …).
30
+ Files are copied into their respective frame folders and renamed with the camera name as a prefix to avoid collisions.
31
+ The final sorted structure is compressed into a ZIP file for download.
32
+ Hosting on Hugging Face Spaces:
33
+
34
+ The application is built using Gradio, making it easy to deploy and share as a web app.
35
+ Ensure that your requirements.txt includes gradio (other standard libraries are already included with Python).
36
+ Once deployed, users can visit the shared Hugging Face Spaces link, upload their ZIP files, and retrieve the sorted frames as a ZIP.
37
+ Temporary Files and Cleanup:
38
+
39
+ The app uses temporary directories to extract and process files. Depending on the size of the inputs, consider monitoring disk usage or implementing cleanup routines if necessary.
40
 
41
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference