dissect icon indicating copy to clipboard operation
dissect copied to clipboard

Error while running the notebook dissect_classifier_experiment.ipynb

Open Vikramank opened this issue 3 years ago • 1 comments

I encountered the following error while running dissect_classifier_experiment.ipynb

compute_acts() takes 1 positional argument but 2 were given

while executing the following cell unit_images = iv.masked_images_for_topk( compute_acts, dataset, topk, k=5, num_workers=30, pin_memory=True, cachefile=resfile('top5images.npz'))

I checked out the helper functions. Could you please help me?

Vikramank avatar May 05 '22 15:05 Vikramank

In the same code cell, just change def compute_acts(image_batch): to def compute_acts(image_batch, *args):

choutianxius avatar May 14 '23 15:05 choutianxius