-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IndexError in lrp.utils::LayerRelevance.scatter(-1).size(1) caused in lrp.common::prop_C3 using Custom YOLOv5 v6.1/6.2 #6
Comments
Oh, I didn't see your note in README before that "Current version only supports YOLOv5s-x models". As it turns out, the So I trained three new networks, based on the Are you planning to implement support for the larger variants, as well as the If no, how would I go about implementing the same? Can you direct me toward the key differences between the architectures that limit/prohibit applicability of your algorithm at this point? I would likely be keen on implementing at least |
Hi @Timmimim , could you let me know how you installed the required packages from requirements.txt? For me it's taking a long time to resolve the dependency issues. |
Hey @shakib-root, The file linked below is the result of running Additionally, this additional file holds the raw list of packages which work for me (probably with some extras you don't need, since I toyed around a bit). It is merely the output of |
@Timmimim thank you very much. I was actually able to build a working environment by using current yolov5 repo's requirements.txt. Later I have updated some parts of |
Hello there,
First off, thanks for your work on this repo!
I am trying to run your explainer on a custom trained YOLOv5 under late v6.1 (pulled from master shortly ahead of v6.2 release). After some tinkering, I got the code framework to run with my setup. The showcase example set by the default parameter values for the
explain.py
script works just fine.I am then calling the
explain.py
script with custom paths for the--weights
and--source
flags. All other params are still the default.Unfortunately, I get the following error message (I am logging
relevance
ahead of the message):relevance.scatter()
returns several cuda tensors, though looking different from the Tensors for the defaultyolov5s.pt
net provided by you. I found thatBut then,
relevance.scatter(which=-1)
returns an emptytensor([])
object.The
explain.py
fails after this point. I don't know where to even start fixing the issue at this point.Can you give me advice as to how to fix this? Am I missing something in the parameter flags maybe?
Do you need more info on the issue?
Thanks in advance and have a wonderful day!
Best, Timm
The text was updated successfully, but these errors were encountered: