Skip to content
Draft
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
7 changes: 7 additions & 0 deletions design-doc/final-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## New Design Implementations

- Parallel Downloading:
Parallel downloading faster and efficient downloading of images from user csv input rather than a serial. Using methods of multiple HTTP connections and Additive Increase and Multiplicative Decrease.

- Data Output in Different Formats:
User can select the final output of the files to be saved such as archived zip files or web dataset. This will allow the user to have more versatality of the final output for the images downloaded.
41 changes: 41 additions & 0 deletions design-doc/roadmap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# __Current Design__

### Modularization
> **Validation module** `rollcall`
Checking for pre-download requirements to ensure that the download takes place without any interruptions or failure because of the following conditions:
- Invalid csv extension
- Duplicate filenames
- Missing filenames
- Existing images on drive
- Duplicate checksums

> **Image Processing module** `download`
Downloading of images according csv provided by user and initial rollcall checks.

> **Verification module** `buddy_check`
Post-download verification of the downloaded images including checks for checksums and filenames.

### Functions & Contracts
`rollcall module`
- __ init __
- validate_csv_extension
- validate_filename_uniqueness
- handle_missing_filenames
- setup_expected_columns
- check_existing_images
- _preview_or_save
- check_duplicate_checksums
- print_download_summary

`download module`
- downsample_and_save

`buddy_check module`
- __ init __
- merge_on_checksum
- merge_on_filename_checksum
- process_checksums
- verify_downloads

### Architecture
The struture of the files and functions after modularization and the control and data flows can be accessed [here](https://app.eraser.io/workspace/bhfPH97OkNPUhSZl0KZV).
Loading