idiap / fullgrad-saliency

Full-gradient saliency maps
Other
201 stars 31 forks source link

Input as timeseries #2

Closed ulkursln closed 4 years ago

ulkursln commented 4 years ago

Thank you for the ResNet support.
Is it possible run ResNet code with timeseries instead of an image? data format of time series that is used from the trained ResNet is: (x,y,z) ( (length of time series/#timestamps), #timestamps, #channels)

suraj-srinivas commented 4 years ago

Sure, it is definitely possible to run the ResNet code with timeseries. The only requirement for a custom model definition is the presence of getBias() and getFeatures() functions.

If your model definition is a simple modification of existing default pytorch resnet.py example then you may perform the same modification in this repository's model/resnet.py file and it should work as-is.

suraj-srinivas commented 4 years ago

I have updated the readme to include more details about the interface structure. Do let me know if that helps.

ulkursln commented 4 years ago

Thank you very much for your quick feedback. I have already read your paper and reviewed the code. I like the idea that you offer. It would be great to reach further users/researchers. I think supporting following items would increase the numbers of target users/researchers:

I am aware this is an open source project so, i put them here to the all who study on the project.

suraj-srinivas commented 4 years ago

Thanks for these suggestions! These are really helpful for me to improve the code.

ulkursln commented 4 years ago

Sure, it is not reasonable to force users for standard model specifications. In this case, I think developing code as parametric as possible and adding wiki pages to give information about handling custom networks on a sample case would improve usability.

suraj-srinivas commented 4 years ago

Hi, I've re-implemented the algorithm such that it now works with any ReLU / BN model. Hopefully it is easier to use now, and may be of interest!