Skip to content

Conversation

@zc2023
Copy link

@zc2023 zc2023 commented Nov 28, 2025

Summary of Changes

This pull request improves the overall reproducibility and stability of the codebase by fixing several issues and updating environment requirements. The main changes include:

  1. Bug Fixes
    • Corrected a typo in the view_selection function call in captioner.py.
    • Commented out the unused use_rl_training argument in dataset construction to avoid runtime errors.
    • Fixed a duplicated launch_distributed(args) call in main.py.

  2. Dependency and Environment Updates
    • Updated the networkx version in README.md to avoid deprecated imports and ensure compatibility with Python 3.9+.
    • Added a NumPy version requirement (numpy==1.26.4) to prevent inconsistent behavior across Python environments.

  3. Argument Parser Improvements
    • Added a --local-rank argument to the parser to support distributed training launched by PyTorch’s distributed utilities.

  4. Script Fixes
    • Updated train.generalist.sh to use the correct dataset name (scenecold_dataset) and removed inconsistent arguments.

These fixes address multiple reproducibility issues that affected both training and dataset loading. The overall goal is to make the project easier to run out of the box.

The old version of networkx will lead to error: ImportErrorImportError    : ImportError: from fractions import gcdcannot import name 'gcd' from 'fractions'
Comment out the RL training flag in the function call.
To avoid Error: `python cython_compile.py build_ext --inplace`
@vvangfaye
Copy link

It's worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants