Closed aarsht7 closed 2 years ago
Resolved before merging #4 (Submodule wasn't up-to-date). @aarsht7 you can try it back now, it's supposed to work.
Yes that I figured out while cloning so I tried to directly cloned the repo from the @MathisFederico and I tried to run the command. but it looks like the code is still searching for the display.
What if
Remove the --view-img argument if you don't want to display live detection
? By doing that, on my computer, my webcam stream is not displayed. @aarsht7
Well you can see in the 1st msg the command that I have executed. I have already removed the argument. I will try to run it after connecting the display. And if it doesn't give any error with the display then I guess we got some issues.
Well you can see in the 1st msg the command that I have executed.
Please ensure that you pulled modifications on the yolor & idnc branches, i can see that .cuda() was called, this should not be the case with the cpu device on the latest
Oh @GaboFlo you made a typo !
In detect.py, searching for cuda, you did this:
# Load model
model = Darknet(cfg, imgsz)
if device == "cpu":
model = model.cuda()
and not this:
# Load model
model = Darknet(cfg, imgsz)
if device != "cpu":
model = model.cuda()
Fixed on branch bugfix/cuda-cpu
@aarsht7
We will merge as soon as @GaboFlo allows it
Yes, I just noticed the same thing.
Nope, It still gives the same error. I have hard coded the device='cpu' and there is no more same error. Strange! Along with that I have to modify several other things. I will upload the modified code for the raspberryPi on new branch
It still gives the error of not detecting the display. and another AssertionError at the end. please have a look at this what can be modified.