jagin / detectron2-pipeline Goto Github PK
View Code? Open in Web Editor NEWModular image processing pipeline using OpenCV and Python generators powered by Detectron2.
License: MIT License
Modular image processing pipeline using OpenCV and Python generators powered by Detectron2.
License: MIT License
Hi, very nice work!
Can i ask if there is an easy way to get only class labels out for each image?
For my project i don't need visualizations, instead i'd love a dataframe with class labels.
Thank you
Could you please share your thoughts basically on 2 topics of my interest:
Any samples, inputs, maybe articles are highly appreciated as well.
Hey @jagin,
I would like to ask you how can I connect Detectron2 external projects(like this one: https://github.com/youngwanLEE/centermask2) to the pipeline?
Thanks!
hey @jagin , when you tested this pipeline, have you ever experimented on the number of detections vs how long it would took to solve the hungarian matching? im testing this and it took as long as 15 seconds on best_matching_hungarian after some profiling. Do you have any pointers where i can look to improve this or is this the limitations of the algorithm?
Thanks!
Hi
it looks like pillow 7 breaks compatibility with pytorch and needs to be updated or force pillow to lower version
https://discuss.pytorch.org/t/cannot-import-name-pillow-version-from-pil/66096
I am getting the following error
This may be due to my setup, the --single-process flag works fine.
Without --single-process the following error is emitted.
RuntimeError: cuda runtime error (801) : operation not supported at C:\w\1\s\tmp_conda_3.7_104508\conda\conda-bld\pytorch_1572950778684\work\torch/csrc/generic/StorageSharing.cpp:245
Traceback (most recent call last):
File "C:\test\lib\multiprocessing\queues.py", line 236, in _feed
obj = _ForkingPickler.dumps(obj)
File "C:\test\lib\multiprocessing\reduction.py", line 51, in dumps
cls(buf, protocol).dump(obj)
File "C:\test\lib\site-packages\torch\multiprocessing\reductions.py", line 242, in reduce_tensor
event_sync_required) = storage.share_cuda()
RuntimeError: cuda runtime error (801) : operation not supported at C:\w\1\s\tmp_conda_3.7_104508\conda\conda-bld\pytorch_1572950778684\work\torch/csrc/generic/StorageSharing.cpp:245
Traceback (most recent call last):
File "C:\test\lib\multiprocessing\queues.py", line 236, in _feed
obj = _ForkingPickler.dumps(obj)
File "C:\test\lib\multiprocessing\reduction.py", line 51, in dumps
cls(buf, protocol).dump(obj)
File "C:\test\lib\site-packages\torch\multiprocessing\reductions.py", line 242, in reduce_tensor
event_sync_required) = storage.share_cuda()
RuntimeError: cuda runtime error (801) : operation not supported at C:\w\1\s\tmp_conda_3.7_104508\conda\conda-bld\pytorch_1572950778684\work\torch/csrc/generic/StorageSharing.cpp:245
Process _PredictWorker-1:
Traceback (most recent call last):
File "C:\test\lib\multiprocessing\process.py", line 297, in _bootstrap
self.run()
File "C:\g\vn\lc\detectron2-pipeline\pipeline\libs\async_predictor.py", line 32, in run
task = self.task_queue.get()
File "C:\test\lib\multiprocessing\queues.py", line 94, in get
res = self._recv_bytes()
File "C:\test\lib\multiprocessing\connection.py", line 216, in recv_bytes
buf = self._recv_bytes(maxlength)
File "C:\test\lib\multiprocessing\connection.py", line 306, in _recv_bytes
[ov.event], False, INFINITE)
The already existing issue on single process is still preveleant along with that the video analysis is not working. A empty directory is made and also according to me there is a problem in frame reading.
Hi,
Thank you for this great work.
I want to run this as inference on my video but to display only certain class label.
In the original detectron2 I know I can do something like this:
predictions = predictor(frame)
instances = predictions["instances"]
category_detections = instances[instances.pred_classes == 0]
and display the output of draw_instance_predictions.
Is it possible to do something like this?
Thank you.
Hey @jagin, awesome repository! what online resources do you suggest for learning about pipeline (how does it work,...)? Thanks.
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.