Git Product home page Git Product logo

geometric_adv's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

geometric_adv's Issues

CUDA path not updated when compiling sh compile_op_pt.sh

I have updated the necessary cuda paths in the recommended files.
I am using cuda-11.1. When I run sh compile_op_pt.sh, the CUDA paths in the build.ninja gets restored back to cuda-10.1 path everytime I compile it.

i have updated the cuda paths several times but it changes back to cuda-10.1 after running sh compile_op_pt.sh
Please find the errors below

sh compile_op_pt.sh
running install
running bdist_egg
running egg_info
writing chamfer_3D.egg-info/PKG-INFO
writing dependency_links to chamfer_3D.egg-info/dependency_links.txt
writing top-level names to chamfer_3D.egg-info/top_level.txt
reading manifest file 'chamfer_3D.egg-info/SOURCES.txt'
writing manifest file 'chamfer_3D.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'chamfer_3D' extension
Emitting ninja build file /home/20020006/geometric_adv/transfer/atlasnet/build/temp.linux-x86_64-3.6/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/1] /usr/local/cuda-10.1/bin/nvcc -I/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/torch/include -I/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/torch/include/TH -I/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-10.1/include -I/home/20020006/.conda/envs/geo_adv/include/python3.6m -c -c /home/20020006/geometric_adv/transfer/atlasnet/auxiliary/ChamferDistancePytorch/chamfer3D/chamfer3D.cu -o /home/20020006/geometric_adv/transfer/atlasnet/build/temp.linux-x86_64-3.6/auxiliary/ChamferDistancePytorch/chamfer3D/chamfer3D.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=chamfer_3D -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
FAILED: /home/20020006/geometric_adv/transfer/atlasnet/build/temp.linux-x86_64-3.6/auxiliary/ChamferDistancePytorch/chamfer3D/chamfer3D.o
/usr/local/cuda-10.1/bin/nvcc -I/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/torch/include -I/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/torch/include/TH -I/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-10.1/include -I/home/20020006/.conda/envs/geo_adv/include/python3.6m -c -c /home/20020006/geometric_adv/transfer/atlasnet/auxiliary/ChamferDistancePytorch/chamfer3D/chamfer3D.cu -o /home/20020006/geometric_adv/transfer/atlasnet/build/temp.linux-x86_64-3.6/auxiliary/ChamferDistancePytorch/chamfer3D/chamfer3D.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=chamfer_3D -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
/bin/sh: 1: /usr/local/cuda-10.1/bin/nvcc: not found
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1515, in _run_ninja_build
env=env)
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "auxiliary/ChamferDistancePytorch/chamfer3D/setup.py", line 13, in
'build_ext': BuildExtension
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 164, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 150, in call_command
self.run_command(cmdname)
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/distutils/command/install_lib.py", line 107, in build
self.run_command('build_ext')
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 649, in build_extensions
build_ext.build_extensions(self)
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
_build_ext.build_extension(self, ext)
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
depends=ext.depends)
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 478, in unix_wrap_ninja_compile
with_cuda=with_cuda)
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1233, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "/home/20020006/.conda/envs/geo_adv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1529, in _run_ninja_build
raise RuntimeError(message)
RuntimeError: Error compiling objects for extension

where is file attack_configuration.pickle?

When I run the command “python run_classifier.py --data_type target --attack_folder out_space_attack”

the log:
Instructions for updating: Colocations handled automatically by placer. Run classifier flags: Namespace(ae_folder='log/autoencoder_victim', attack_folder='output_space_attack', attack_pc_idx='log/autoencoder_victim/eval/sel_idx_rand_100_test_set_13l.npy', classifier_folder='log/pointnet', classifier_restore_epoch=150, data_type='target', defense_folder='defense_critical_res', num_classes=13, num_points=2048, output_folder_name='classifier_res') Traceback (most recent call last): File "run_classifier.py", line 72, in <module> conf = Conf.load(osp.join(classifier_data_path, 'attack_configuration')) File "/media/l1/Disk28/Luogyu/3D_Attack_Defense/geometric_adv/geometric_adv/src/autoencoder.py", line 82, in load return unpickle_data(file_name + '.pickle').__next__() File "/media/l1/Disk28/Luogyu/3D_Attack_Defense/geometric_adv/geometric_adv/src/in_out.py", line 63, in unpickle_data inFile = open(file_name, 'rb') FileNotFoundError: [Errno 2] No such file or directory: '/media/l1/Disk28/Luogyu/3D_Attack_Defense/geometric_adv/geometric_adv/log/autoencoder_victim/eval/output_space_attack/attack_configuration.pickle'

And I search the file name ‘attack_configuration.pickle' , just have the file named 'configuration.pickle'

Is this normal?Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.