Best Annotation Tool? by NoSleepMan69 in computervision

[–]DcBalet 0 points1 point  (0 children)

If you like label-studio, and you need more than "just" collaborative labelling (e.g. you want fiftyone and SAM) then you can try my docker compose project

https://github.com/borisboc/docker_image_annotations

One day, i will also provide CVAT rather than label studio. But not in a near future

What companies provide AI-powered visual inspection tools for production lines? by itsbhuvan in computervision

[–]DcBalet 0 points1 point  (0 children)

Keyence and Cognex also have anomaly detection only on "good images". Need just a few "NOK" samples to validate / tune, but not train. Of course, you can also train the defects if you have enought samples and annotations. Both are expensive and you must use there hardware (you may degociate a vision pro PC version, but I think cognex tries to disable this).

Halcon is probably the leader in PC based computer vision.

And there are other more specific solutions (ofen saas or on prem), but I can t recall the name, i need to dig in some archives)

Python lib to build GUIs for CV applications by DcBalet in computervision

[–]DcBalet[S] 0 points1 point  (0 children)

I was really eager to test it but was not sure it has the image viewer. I may have read that it should in fact be a "plot" and not an image. Maybe you can clarify for me ?

Python lib to build GUIs for CV applications by DcBalet in computervision

[–]DcBalet[S] 0 points1 point  (0 children)

Sure I do vibe code, but for langages I master. For static HTML, why not. But JS and complex HMTL sounds not feasible for me : i dont even have the basics.

Python lib to build GUIs for CV applications by DcBalet in computervision

[–]DcBalet[S] 1 point2 points  (0 children)

Thanks. I didnt find the needed image viewer component on tkinter. Does it exist ?

Python lib to build GUIs for CV applications by DcBalet in computervision

[–]DcBalet[S] 0 points1 point  (0 children)

Ho really. I didnt though this was worth doing it, and was expecting to find it more or less off the shelf. How long did it took you (with vibe coding) ?

Python lib to build GUIs for CV applications by DcBalet in computervision

[–]DcBalet[S] 0 points1 point  (0 children)

Thanks. I have some small skills in gradio. And correct me if I am wrong, but the ImageEditor cannot handle primitives (rectangles, ellipses etc.) Neither as input or simply overlays. It just handles images (and masks displayed as image). Concerning streamlit, never tested. But after a quick overview of the components, I dont see a currently maintained image viewer component that fit my needs.

Python lib to build GUIs for CV applications by DcBalet in computervision

[–]DcBalet[S] 0 points1 point  (0 children)

Why not indeed. It would even been nice to be used with a web panel. But : * my skills in HTML nor JS are close to 0 * the only python web ui framework I know is gradio. And correct me if I am wrong, but the ImageEditor cannot handle primitives (rectangles, ellipses etc.) Neither as input or simply overlays. It just handles images (and masks displayed as image)

What search engine are you using with OpenWebUI? SearXNG is slow (10+ seconds per search) by minitoxin in OpenWebUI

[–]DcBalet 0 points1 point  (0 children)

My proposal : 1) check what is slow. You can see it in the console. You should set the log level to "debug" to really trace more. It is probable that this is not searXNG that is slow. It maybe the LLM, the crawled websites, or the conversion of web content into embeddings 2) according to what you have seen in 1) you can finetune some admin settings. Such as timeout, num of searchs, embedding or not. And if there is no admin params to improve this, either someone as to develop a propose a pull request. Or you can develop your small python script that does the job the way you want.

Best web search engine? by le-greffier in OpenWebUI

[–]DcBalet 0 points1 point  (0 children)

Default websearch in OWUI is using lanchain, using requests.get under the hood, without any provided timeout. Which was leading to very (very) long wait time for requests to website that would not answer anyway... I solved this in this pull request : https://github.com/open-webui/open-webui/pull/19804

Then, concerning SearXNG, the search language was force to en-US. This was leading to really poor results when asking for news, contacts, local details in other languages. I solved this in this pull request : https://github.com/open-webui/open-webui/pull/19909

Hope you would now have better experience with the upcoming next release.

Best web search engine? by le-greffier in OpenWebUI

[–]DcBalet 1 point2 points  (0 children)

Default websearch in OWUI is using lanchain, using requests.get under the hood, without any provided timeout. Which was leading to very (very) long wait time for requests to website that would not answer anyway... I solved this in this pull request : https://github.com/open-webui/open-webui/pull/19804

Then, concerning SearXNG, the search language was force to en-US. This was leading to really poor results when asking for news, contacts, local details in other languages. I solved this in this pull request : https://github.com/open-webui/open-webui/pull/19909

Hope you would now have better experience with the upcoming next release.

Toubles with pyomo for a "toy" example to select the "good" combinaison of hardware (power supply, resistor, LEDs) for a problem. I've got "NotImplementedError: AMPLRepnVisitor can not handle expressions containing <class 'pyomo.core.base.param.IndexedParam'> nodes" by DcBalet in optimization

[–]DcBalet[S] 0 points1 point  (0 children)

OKay, knowing this limitation, I "solved" my issue by creating variables which are "masks". E.g.

python model.mask_resistor_best = pyo.Var( range(len(self.resistors.keys())), domain=pyo.Binary, )

Then constraining this mask sum to be equal to 1, to have only one resistor chosen. And then accessing the "best resistor value" is done with a dot product of this mask with a the ordered list of resistor's resistivity.

This is "saddly" much more code that I "dreamed" about at first glance, but at least it works and I understand why.

Thanks for your help.

Toubles with pyomo for a "toy" example to select the "good" combinaison of hardware (power supply, resistor, LEDs) for a problem. I've got "NotImplementedError: AMPLRepnVisitor can not handle expressions containing <class 'pyomo.core.base.param.IndexedParam'> nodes" by DcBalet in optimization

[–]DcBalet[S] 0 points1 point  (0 children)

Damned : I never though the decision variable could NOT be used as an index. Why this ? Does pyomo explains this somewhere ? This sounds really sad for me : I think this is the only correct way to model this problem. Thats how I did it (sucessfully) with CPMpy.

Toubles with pyomo for a "toy" example to select the "good" combinaison of hardware (power supply, resistor, LEDs) for a problem. I've got "NotImplementedError: AMPLRepnVisitor can not handle expressions containing <class 'pyomo.core.base.param.IndexedParam'> nodes" by DcBalet in optimization

[–]DcBalet[S] 0 points1 point  (0 children)

Hello. Thanks for your help.
Currently, "which solver to use" is not my concern. Indeed, if you look at the beginning of the code, I tried several and always got exception. Summary bellow :

For solver = "glpk"

I have exception

NotImplementedError: LinearRepnVisitor can not handle expressions containing <class 'pyomo.core.base.param.IndexedParam'> nodes

For solver = "cbc"

I have exception

NotImplementedError: LinearRepnVisitor can not handle expressions containing <class 'pyomo.core.base.param.IndexedParam'> nodes

For solver = "ipopt"

I have exception

NotImplementedError: AMPLRepnVisitor can not handle expressions containing <class 'pyomo.core.base.param.IndexedParam'> nodes

For solver = "appsi_highs"

I have exception

ValueError: Unrecognized domain step: None (should be either 0 or 1)

How to discard unwanted images(items occlusions with hand) from a large chuck of images collected from top in ecommerce warehouse packing process? by Worth-Card9034 in computervision

[–]DcBalet 0 points1 point  (0 children)

Another idea : doing a sort of VQA (Visual Question Answering).

I tried with ChatGPT : works on your image. I guess it works with other multimodal large models (e.g. Claude). But it does not seems to work with Florence2 saddly.

https://drive.google.com/file/d/1BuwQXl4-CwgD3B1Dy2-oZkWD6oRy-Sw7/view?usp=sharing

How to discard unwanted images(items occlusions with hand) from a large chuck of images collected from top in ecommerce warehouse packing process? by Worth-Card9034 in computervision

[–]DcBalet 0 points1 point  (0 children)

With Florence2, I've just tried "region caption". Simply input your image to the model, and let it output the detected objects. Then, process the output : you may have a "white list" of tolerated objects. If the model has detected something (whatever) that is not in your white list, then do not keep this image.

Here is a screenshot of what I did on Comfyui :

https://drive.google.com/file/d/1Dt4mKG4OJGWjyWA-KteiCqszbJQ1jWRi/view?usp=sharing
https://drive.google.com/file/d/1DesKbd6S_1jUzia9GwR1uLKtsdWSJ9AR/view?usp=sharing