sander-wood commited on
Commit
af9bb16
1 Parent(s): e241d6d

Update code/README.md

Browse files
Files changed (1) hide show
  1. code/README.md +4 -2
code/README.md CHANGED
@@ -13,8 +13,9 @@ This script contains the training hyperparameters and file paths used in the `tr
13
  This script utilizes the pre-trained CLaMP 2 model to extract representations of text (.txt) or music (.abc or .mtf) from a specified input folder and save the features to a target output folder in `.npy` format. The extracted features can be normalized for semantic search or retain temporal information for classification tasks.
14
 
15
  **Usage:**
 
16
  ```bash
17
- python extract_clamp2.py <input_dir> <output_dir> [--normalize]
18
  ```
19
  - `input_dir`: Directory containing input data files.
20
  - `output_dir`: Directory to save the output features.
@@ -24,8 +25,9 @@ python extract_clamp2.py <input_dir> <output_dir> [--normalize]
24
  This script employs the pre-trained M3 model to extract representations in interleaved ABC notation and MIDI Text Format (MTF) from the specified input folder, saving the features to the target folder as `.npy` files.
25
 
26
  **Usage:**
 
27
  ```bash
28
- python extract_m3.py <input_dir> <output_dir>
29
  ```
30
  - `input_dir`: Directory with input files (in .abc or .mtf format).
31
  - `output_dir`: Directory to save extracted features.
 
13
  This script utilizes the pre-trained CLaMP 2 model to extract representations of text (.txt) or music (.abc or .mtf) from a specified input folder and save the features to a target output folder in `.npy` format. The extracted features can be normalized for semantic search or retain temporal information for classification tasks.
14
 
15
  **Usage:**
16
+ It supports multi-GPU processing with `accelerate launch` for efficient extraction across multiple GPUs.
17
  ```bash
18
+ accelerate launch extract_clamp2.py <input_dir> <output_dir> [--normalize]
19
  ```
20
  - `input_dir`: Directory containing input data files.
21
  - `output_dir`: Directory to save the output features.
 
25
  This script employs the pre-trained M3 model to extract representations in interleaved ABC notation and MIDI Text Format (MTF) from the specified input folder, saving the features to the target folder as `.npy` files.
26
 
27
  **Usage:**
28
+ It supports multi-GPU processing with `accelerate launch` for efficient extraction across multiple GPUs.
29
  ```bash
30
+ accelerate launch extract_m3.py <input_dir> <output_dir>
31
  ```
32
  - `input_dir`: Directory with input files (in .abc or .mtf format).
33
  - `output_dir`: Directory to save extracted features.