csce585-mlsystems / project-athena

This is the course project for CSCE585: ML Systems. Students will build their machine learning systems based on the provided infrastructure --- Athena.
MIT License
13 stars 19 forks source link

art.classifiers.classifier not recognized and warmup-scheduler questions #10

Closed Kronemeyer closed 4 years ago

Kronemeyer commented 4 years ago

After trying to install all the packages, requirements, and dependencies I am seeing three files that have the following imports:

from art.classifiers.classifier import Classifier, ClassifierNeuralNetwork, ClassifierGradients

Each of these is causing an error stating that the reference to 'classifier' cannot be found in the init.py file. I followed the link in the tutorial 01 (the hard way) to inspect the adversarial-robustness-toolbox (ART) files and found the following files: image

And within the init.py file I found no mention of the three imports: image

Inspecting some older releases of art, however, I do see the Classifier, ClassifierNeuralNework, and ClassifierGradients. Which release of art is being used for Athena?

Additionally, my pycharm is showing a warning that the Package requirement 'pytorch-gradual-warmup-lr' is not satisfied even though I have run (athena_env) PS D:\585\src\tutorials> pip install git+https://github.com/ildoonet/pytorch-gradual-warmup-lr.git and it shows as successfully built. It does, however, show on my conda list warmup-scheduler.

Will the difference in names make a cause any issues? How does the pytorch-gradual-warmup-lr show up in your environment?

MENG2010 commented 4 years ago

from art.classifiers.classifier import Classifier, ClassifierNeuralNetwork, ClassifierGradients

This error is caused by the refactor in later versions of Adversarial-Robustness-Toolkit. Please make sure to install the right version, which is 1.2.0

pip install adversarial-robustness-toolbox==1.2.0