Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update setup.py, installation instructions and transformer settings #95

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

YasserElj
Copy link

  1. sam2/modeling/sam/transformer.py:

    • Added warnings.simplefilter(action="ignore", category=FutureWarning) to ignore FutureWarnings.
    • Updated the settings for OLD_GPU, USE_FLASH_ATTN, and MATH_KERNEL_ON to the desired values:
      OLD_GPU = True
      USE_FLASH_ATTN = False
      MATH_KERNEL_ON = True
  2. setup.py:

    • Updated package_data to include sam2_configs:
      package_data={
          "sam2_configs": ["*.yaml"],
      },
  3. setup.py:

    • Updated installation instructions to include the correct commands:
      pip install git+https://github.com/facebookresearch/segment-anything-2.git
      

These changes ensure that the sam2_configs files are correctly packaged and that the transformer settings are updated as required.

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

Successfully merging this pull request may close these issues.

3 participants