maxi-w / clip-sam Goto Github PK
View Code? Open in Web Editor NEWExperiment on combining CLIP with SAM to do open-vocabulary image segmentation.
Experiment on combining CLIP with SAM to do open-vocabulary image segmentation.
Traceback (most recent call last):
File "/home/tina/Desktop/CLIP-SAM-main/main.py", line 48, in <module>
def retriev(elements: list[Image.Image], search_text: str) -> int:
TypeError: 'type' object is not subscriptable
Following your tutorial, I went to the step of directly running main.ipynb
, but the above error occurred. Please advise me on how to solve this bug. Thank you very much!
Your work is very good!
Simple and effective.
For your information, there is another solution from the explainability of CLIP.
Our work can achieve text to mask with SAM: https://github.com/xmed-lab/CLIP_Surgery
This is work is in the aspect of CLIP's explainability. It's able to guide SAM to achieve text to mask without manual points.
Besides, it enhances many open-vocabulary tasks, like segmentation, multi-label classification, multimodal visualization.
This is the jupyter demo:
https://github.com/xmed-lab/CLIP_Surgery/blob/master/demo.ipynb
I optimized the code based on the provided code, fully using OpenCV Python, and optimized the functions within it.my github: https://github.com/qsd-github/sam-clip-opencv
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.