facebookresearch / radioactive_data

This technique modifies image data so that any model trained on it will bear an identifiable mark.
Other
38 stars 9 forks source link

Unknown/missing config file #7

Closed zzzucf closed 2 years ago

zzzucf commented 2 years ago

When to generate the radioactive data, the below line in ~/src/datasets.py line 48 throw an error.

SUBCLASSES = { "imagenet": { n_cl: list(np.load("/private/home/asablayrolles/data/radioactive/imagenet_classes/%d.npy" % n_cl)) for n_cl in [10, 20, 50, 100, 200, 500] } }

Can you explain what does this file do? what is 10.npy? and how to fix that? Best regards.

alexandresablayrolles commented 2 years ago

You can comment out this line, it's in the case where you want to use imagenet with a lower number of classes (in which case each file has a list of the classes that you use).