DSE-MSU / DeepRobust

A pytorch adversarial library for attack and defense methods on images and graphs
MIT License
994 stars 192 forks source link

A source code error when using deeprobust.graph.data.Dataset under windows (have solved) #143

Open breakices opened 1 year ago

breakices commented 1 year ago
eb713f99b7db5eb248a5f365f21411e

If you use deeprobust.graph.data.Dataset in windows, here comes a problem that the object would not initial its attribute "root", which leads to an AttributeError: 'Dataset' object has no attribute 'root' It can be easyly solved by add "self." in the front of the first "root", as following.

image

breakices commented 1 year ago

I'm not true if the same problem will occur while using the code in github because I download the package by pip install.

ChandlerBang commented 1 year ago

Thanks for reporting the problem. The code at Github has already fixed this issue while we haven't updated it to the pypi source. We will update pip version soon.

breakices commented 1 year ago

Thanks for replying!