RyanHangZhou / tensorflow-LG-GAN

LG-GAN: Label Guided Adversarial Network for Flexible Targeted Attack of Point Cloud-based Deep Networks
MIT License
20 stars 4 forks source link

A problem about pointnet_cls model loading #4

Closed zjhJOJO closed 3 years ago

zjhJOJO commented 3 years ago

Thank you for your excellent work and open source code. My deep learning environment : Ubuntu 20.04, CUDA 11.4, and tensorflow 2.6. I downloaded the pointnet_cls model that you provided in Google drive and put it to the directory "checkpoints/pointnet", but something error occurred, namely,

tensorflow.python.framework.errors_impl.NotFoundError: Restoring from checkpoint failed. This is most likely due to a Variable name or other graph key that is missing from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:

2 root error(s) found. (0) Not found: Key conv1/biases not found in checkpoint [[node save/RestoreV2 (defined at lggan.py:201) ]] (1) Not found: Key conv1/biases not found in checkpoint [[node save/RestoreV2 (defined at lggan.py:201) ]] [[save/RestoreV2/_15]] 0 successful operations. 0 derived errors ignored.

when i ran the command "python -u lggan.py --adv_path LGGAN --checkpoints_path LGGAN --log_path LGGAN --tau 1e2". I am sure that i do not modify any file related to your provided model files, i.e.,

checkpoint model.cpkt-202080.data-00000-of-00001 model.cpkt-202080.index model.cpkt-202080.meta

I will greatly appreciate if you could offer me some advises. Thank you :D

RyanHangZhou commented 3 years ago

Hi,

I think it may be the incompatibility of the environment version with my code. Please follow the same environment setup as mine.

Cheers Hang

On Sat, Oct 23, 2021 at 8:31 AM FuckingNoO @.***> wrote:

Thank you for your excellent work and open source code. My deep learning environment : Ubuntu 20.04, CUDA 11.4, and tensorflow 2.6. I downloaded the pointnet_cls model that you provided in Google drive and put it to the directory "checkpoints/pointnet", but something error occurred, namely, ============================================================ tensorflow.python.framework.errors_impl.NotFoundError: Restoring from checkpoint failed. This is most likely due to a Variable name or other graph key that is missing from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error: 2 root error(s) found. (0) Not found: Key conv1/biases not found in checkpoint [[node save/RestoreV2 (defined at lggan.py:201) ]] (1) Not found: Key conv1/biases not found in checkpoint [[node save/RestoreV2 (defined at lggan.py:201) ]] [[save/RestoreV2/_15]] 0 successful operations. 0 derived errors ignored. ============================================================ when i ran the command "python -u lggan.py --adv_path LGGAN --checkpoints_path LGGAN --log_path LGGAN --tau 1e2". I am sure that i do not modify any file related to your provided model files, i.e., checkpoint model.cpkt-202080.data-00000-of-00001 model.cpkt-202080.index model.cpkt-202080.meta

I will greatly appreciate if you could offer me some advises. Thank you :D

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/RyanHangZhou/tensorflow-LG-GAN/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFLHQWV7H3EJAKXF2I7GSV3UILIOTANCNFSM5GSMJJ2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

zjhJOJO commented 3 years ago

Thank you for your reply. I have solved this problem by retraining the attacked model "pointnet_cls"