Open samchrist12 opened 3 years ago
@samchrist12 @theAIGuysCode For grayscale detection (model trained for grayscale) of RGB video and also useful for custom class names. All tested.. Hope it helps..
@samchrist12 Hi Did you slove the problem? I have same problem with you. I wanna use RGBD(4 channels image). But it shows me this: ValueError: Cannot feed value of shape (1, 128, 64, 4) for Tensor 'images:0', which has shape '(None, 128, 64, 3)'
Thanks~
@anandkoirala1 I already use your method, but it didn't work.
It shows this: ValueError: Cannot feed value of shape (1, 128, 64, 4) for Tensor 'images:0', which has shape '(None, 128, 64, 3)' It seems like model already change to 4 channels. And it can predict well. It can produce bboxes.
In this step, I failed:
features = encoder(frame, bboxes)
It seems like deepSORT do not provide different channels tracking.
In line 52&53:
model_filename = 'model_data/mars-small128.pb'
encoder = gdet.create_box_encoder(model_filename, batch_size=1)
Maybe i need to change this!
I already have a YoloV4-Tiny model that trained on grayscale image. I change save_model.py input layer to
on object_tracker.py I already tried to add some code to make the grayscale work
but I got error like this
any ideas on how to do the grayscale inferencing ? Thanks