bethgelab / bethgelab/AnalysisBySynthesis

Error while using \scripts\attacks.py"

Open
#10 2 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.