PYTHON MONEY: post #220 — TG.ME

Data preparation example:

1. Loop through the folders containing materials for each script (script_1, script_2, script_3), located in the generated_images folder.

2. For each folder, loop through the subfolders with scenes (scene_1, scene_2, scene_3).

3. In each subfolder, pack the paths to all files into a dictionary. Example of a dictionary:

files = {'image_1': 'path', 'image_2': 'path', 'image_3': 'path', 'voiceover': 'path', 'footage_1': 'path', 'footage_2': 'path'}

4. Return a list of lists of dictionaries. Each list of dictionaries represents a script, and each dictionary contains file paths for a specific scene.

5. Loop through each list (script).

6. Pass the LIST OF DICTIONARIES to the execute method.
🔥7
October 24, 2024 2.3K 3