autodistill / autodistill-grounded-sam-2

Use Segment Anything 2, grounded with Florence-2, to auto-label data for use in training vision models.
https://docs.autodistill.com
Apache License 2.0
95 stars 13 forks source link

"Installation Failure: flash-attn Build Error During autodistill-grounded-sam-2 Installation in Google Colab" #9

Open Natty02 opened 2 weeks ago

Natty02 commented 2 weeks ago

Issue Description: When attempting to install the autodistill-grounded-sam-2 package in Google Colab using the command !pip install autodistill-grounded-sam-2, an error occurs related to the dependency flash-attn. The issue arises during the wheel-building process (bdist_wheel), with a subprocess-exited-with-error message indicating a failure in installation. Details of the issue:

  1. flash-attn installation error: The package flash-attn, required by autodistill-grounded-sam-2, fails to build. The process exits with code 1 during the setup.py bdist_wheel step.
  2. Error note: The error originates from an external subprocess, likely due to a build issue with flash-attn in the Colab environment rather than a pip issue itself.

Troubleshooting steps attempted: Efforts to resolve the issue, such as updating pip, reinstalling torch, and attempting to build dependencies manually, were unsuccessful.

Environment:

Any guidance or fixes would be appreciated!