ChaoningZhang / MobileSAM

This is the official code for MobileSAM project that makes SAM lightweight for mobile applications and beyond!
Apache License 2.0
4.86k stars 505 forks source link

Resolved The colab error in current state due to depe #70

Open danishbansal-unthinkable opened 1 year ago

danishbansal-unthinkable commented 1 year ago

Problem

The following issue was encountered, indicating that mobile_sam hadn't been downloaded: colab-mobile-sam-error This problem was rectified by cloning the current repository.

After the installation, a new error regarding timm cropped up, as shown below: timm-module-error

This was addressed by simply installing the timm package using !pip install timm.

Lastly, there was an error stating that the model could not be found. This was easily resolved by downloading the model with the following command: !wget https://github.com/ChaoningZhang/MobileSAM/raw/master/weights/mobile_sam.pt and adjusting the path to the downloaded path.

Solution

This PR already added the required code and in working state