Skip to content

Conversation

@sanjeev-bhandari
Copy link

Hi @vefalun , this work of yours is great. but the program was not running in latest environment. So I created a fix to work in latest python packages(as installation from requirements.txt installed latest packages).

Here are the changes I made:

  • Updated import statements for timm modules to align with current (non-deprecated) usage.
  • Removed the verbose parameter from ReduceLROnPlateau to match changes in PyTorch 2.1, where this argument is no longer supported.
  • Replaced np.float(1.0) with a standard float to maintain compatibility with NumPy 2.x, which removed np.float.
  • Added .gitignore and requirements.txt files for easier project setup and environment replication.

Thanks for making your work public

- Updated import for timm modules(previous implementation was deprecated)
- removed verbose parameter passing in ReduceLROnPlateau as it is not available in latest 2.1 torch implementation
- Using regular float instead of np.float(1.0) as this was removed onward 2.* numpy implementation
- Added gitignore and requirement.txt for quick use
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