Open 3202336152 opened 5 months ago
Hi, Thanks for reaching out. I have just added ./ops in our repo, you can now follow the installation and run the code.
Hello, thank you for your reply. After compiling, ops still reports the following error. How to solve it?
Traceback (most recent call last):
File "/home/sda/lyf/ProLab-main/test.py", line 11, in
Did you follow the installation instruction to create a conda environment and install all requirements then compiling the ops? I have tested all the steps on our server and it works. You may also take a look at this similar issue https://github.com/open-mmlab/mmrazor/issues/487 and check if you have installed both mmcv and mmcv-full in the same environment.
Hello, thank you for your reply. I have solved the above problem and successfully completed the test. I would like to ask if your code provides visual results, such as images after successful segmentation.
Hi, if you want the visual results, you can add "--show-dir RESULT_DIR" in evaluation scrpit to generate visual results under RESULT_DIR fold.
Thank you for your enthusiastic reply. I would like to ask if it is possible to segment the corresponding image by giving a text description and picture as shown in the example in the paper. Is there such a code implementation?
Hi, We have no plan to release this part of code right now, sorry about that. But, in the future, we may plan to release some demos. Also, you can implement this by yourself. You can input your language prompts/descriptions into a language embedding model (e.g., bge-base) to get language embeddings and calculate cosine similarity between image embeddings (remember to resize to original image size): https://github.com/lambert-x/ProLab/blob/aca12d7e597e1785829adb55576f3e754d1cf70c/mmseg_custom/models/segmentors/encoder_decoder_cluster_embed.py#L120 with language embeddings to get a soft prediction. Then you can use a threshold (usually 0.5, you may need to slightly adjust it) to get the binary segmentation map. For better segmentation, I recommend you to use descriptions/prompts from our provided descriptors.
thank you for your reply. I'll try my best to implement your method and look forward to you posting relevant demo code.
Hello, thank you for your excellent work. Where is the file ../detection/ops here? Execution fails here. ln -s ../detection/ops ./ cd ops & sh make.sh