nlsde-safety-team / DualAttentionAttack

53 stars 9 forks source link

all the elements in "imgs_pred" become zeros after self.mask_renderer.forward(self.vertices_var, self.faces_var, self.textures) #5

Open ghost opened 2 years ago

ghost commented 2 years ago

Excellent and amazing ideas! Sth wrong when repeating DualAttentationAttack with the provided dataset, "audi_et_te.obj" and "all_faces.txt". And debug information shows that all the elements in "imgs_pred" become zeros after the code of this line in MyDataset: "imgs_pred = self.mask_renderer.forward(self.vertices_var, self.faces_var, self.textures) ". That's why NANs exist in total_img. Could you please point out the root of the above problem?

nlsde-safety-team commented 2 years ago

Thanks for your interests! The dataset need to be processed by the function parse_npz() in the line src/nmr_test.py/282. You can refer to the function and process the dataset.

zytxxn commented 2 years ago

Could you tell me where the "test.py" is? I can't find it.