-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
Description
During multi-GPU inference, I am experiencing issues with category scores that are both incorrect and non-deterministic. Single-GPU or CPU-based inference produces consistent and expected results without this issue.
Environment
- OS: Ubuntu 20.04
- Python version: Python 3.11.9
Steps to Reproduce
- Step 1 : Generate images using the prompts provided prompts.
- Step 2 : Execute the evaluation command:
bash dpg_bench/dist_eval.sh $YOUR_IMAGE_PATH $RESOLUTION- step 3:Re-run step 2.
Expected Behavior
- Evaluating the same images should yield identical L1 category scores, L2 category scores, and DPG-Bench scores across multiple runs when multi-GPU inference.
Actual Behavior
- When evaluating the same images, the L1 and L2 category scores vary between runs when multi-GPU inference.
Possible Solutions or Workarounds
gather_objectfunction does not ensure a consistent order ofglobal_categorieswhen running on multiple GPUs. To address this, we need to enforce a consistent order.- Modify the
compute_dpg_bench.pyscript at line 222 as follows:
# global_categories = set(global_categories)
global_categories = sorted(set(global_categories))This change ensures that the categories are processed in a fixed, sorted order, which may resolve the inconsistency observed during multi-GPU inference.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels