You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Signature of method 'PORPoisoner.call()' does not match signature of base method in class 'Poisoner'
Line 67 in openbackdoor/attackers/poisoners/por_poisoner.py: def __call__(self, model, data: Dict, mode: str)
However,
Line 57 in openbackdoor/attackers/poisoners/poisoner.py, def __call__(self, data: Dict, mode: str)
This will lead to TypeError: __call__() takes 3 positional arguments but 4 were given when using the PORPoisoner
After modifying the signature, I got the following errors:
2. AttributeError: 'PLMVictim' object has no attribute 'save'
This is at line 36, in openbackdoor/attackers/por_attacker.py.
3. TypeError: 'NoneType' object is not subscriptable
line 37, openbackdoor/attackers/por_attacker.py
I'm not sure if these are bugs or I'm not using the PORAttacker in the designed way. Could the authors of this repo provide a minimal working example for the PORAttacker?
The text was updated successfully, but these errors were encountered:
Here is the code I'm trying to run (a slight modification version of the demo provided):
1. Signature of method 'PORPoisoner.call()' does not match signature of base method in class 'Poisoner'
Line 67 in
openbackdoor/attackers/poisoners/por_poisoner.py
:def __call__(self, model, data: Dict, mode: str)
However,
Line 57 in
openbackdoor/attackers/poisoners/poisoner.py
,def __call__(self, data: Dict, mode: str)
This will lead to
TypeError: __call__() takes 3 positional arguments but 4 were given
when using the PORPoisonerAfter modifying the signature, I got the following errors:
2. AttributeError: 'PLMVictim' object has no attribute 'save'
This is at line 36, in
openbackdoor/attackers/por_attacker.py
.3. TypeError: 'NoneType' object is not subscriptable
line 37,
openbackdoor/attackers/por_attacker.py
I'm not sure if these are bugs or I'm not using the PORAttacker in the designed way. Could the authors of this repo provide a minimal working example for the PORAttacker?
The text was updated successfully, but these errors were encountered: