Skip to content

chore: dependency updates, performance optimizations, and bug fixes#37

Open
alexey-krasnov wants to merge 21 commits intothomas0809:mainfrom
alexey-krasnov:main
Open

chore: dependency updates, performance optimizations, and bug fixes#37
alexey-krasnov wants to merge 21 commits intothomas0809:mainfrom
alexey-krasnov:main

Conversation

@alexey-krasnov
Copy link

@alexey-krasnov alexey-krasnov commented Mar 12, 2025

This PR includes several important dependency updates, performance optimizations, and bug fixes:

Dependency Updates:

  • Updated transformers to >=4.47.0,<=4.52.4 for improved compatibility
  • Upgraded RDKit from rdkit-pypi>=2021.03.2 to rdkit>=2024.3.5 for enhanced chemical functionality
  • Fixed versions of opencv-python>=4.10.0.84 and numpy>=1.19.5,<2.0
  • Updated albumentations with proper class imports
  • Tested and adjusted timm, torch, and transformers versions for compatibility

Performance Optimizations:

  • Removed dynamically adjusted num_workers based on the number of images in list for more consistent performance
  • Implemented batch_size=32 for Apple MPS

Bug Fixes:

  • Fixed a bug related to cases like (CH2)5 in condensed formulas
  • Removed unnecessary AllChem.Compute2DCoords(mol) from _expand_functional_group method to preserve original molecular coordinates and maintain layout consistency with input images

Code Improvements:

  • Implemented read_requirements function in setup.py for reading requirements.txt
  • Merged changes from CrystalEye42 fork
  • Removed redundant commented code
  • Updated .gitignore to include *.egg-info
  • Bumped version to 1.2.0

alexey-krasnov and others added 17 commits October 14, 2024 13:53
…l to os.cpu_count for input images greater that 100
…0. Implemented function read_requirements in setup.py for reading requirements.txt
chore: incorporated commits from thomas0809/MolScribe, updated dependencies, optimized worker allocation
…rying to implement new versio of albumentations
…rying to implement new versio of albumentations
@flange-ipb flange-ipb mentioned this pull request Nov 11, 2025
Copy link
Owner

@thomas0809 thomas0809 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexey-krasnov Really appreciate your contribution. Sorry that I don't have enough time to maintain this repo. I made a few comments to this PR.

Copy link
Author

@alexey-krasnov alexey-krasnov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code has been removed: AllChem.Compute2DCoords(mol) and the part for #Dynamically adjust num_workers based on the number of images in list

@alexey-krasnov alexey-krasnov changed the title chore: updated dependencies, optimized worker allocation chore: dependency updates, performance optimizations, and bug fixes Feb 18, 2026
@alexey-krasnov
Copy link
Author

@alexey-krasnov Really appreciate your contribution. Sorry that I don't have enough time to maintain this repo. I made a few comments to this PR.

@thomas0809 , glad to help! Thank you for this amazing project.

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