bethgelab / bethgelab/AnalysisBySynthesis
Error while using \scripts\attacks.py"
Open
- Dominant language
- Python
- Stars
- 64
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
am getting the following error while running \scripts\attacks.py":
fmodel = foolbox.models.PyTorchModel(model, # return logits in shape (bs, n_classes)
TypeError: __init__() got an unexpected keyword argument 'num_classes'
Contributor guide
No contributing guide indexed for this repository
Research direction
Open scripts/attacks.py and inspect the PyTorchModel initialization that passes num_classes. Check the project's dependency versions and the available Foolbox API, then run the script to confirm the TypeError is resolved and execution proceeds past this point.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100