poloclub / revamp

Automated Simulations of Adversarial Attacks on Arbitrary Objects in Realistic Scenes
BSD 3-Clause "New" or "Revised" License
10 stars 1 forks source link

Missing predict_objdet_batch.py Script in Repository #1

Closed chen37058 closed 8 months ago

chen37058 commented 9 months ago

Hello,

I've been working with your project and encountered a step in the workflow that requires the predict_objdet_batch.py script. According to the Makefile and other parts of the project, this script is expected to perform batch object detection predictions and output results to specified files.

However, I encountered an error indicating that the predict_objdet_batch.py file does not exist in the repository:

python src/predict_objdet_batch.py -d stop_sign -st 0.3 > ./results/stop_sign/2024-02-17/14-41-13/0_scores.txt
python: can't open file '/home/disk1/cm/Projects/Attack-Navigation/revamp/src/predict_objdet_batch.py': [Errno 2] No such file or directory
Makefile:27: recipe for target 'render_predict' failed
make: *** [render_predict] Error 2
Error executing job with overrides: []
Traceback (most recent call last):
  File "/home/disk1/cm/Projects/Attack-Navigation/revamp/revamp.py", line 75, in run
    subprocess.run(render_predict, shell=True, check=True)
  File "/home/disk1/cm/anaconda3/envs/attk/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'make TARGET=stop_sign TARGET_SCENE=cube RESULTS_DIR=./results/stop_sign/2024-02-17/14-41-13 TEX_NUM=0 SENSOR_POS_FN=generate_16_orbit_cam_positions SCORE_TEST_THRESH=0.3 render_predict' returned non-zero exit status 2.

I was unable to find the script in the repository, and it seems to be a critical part of the workflow for generating object detection predictions from rendered images.

Could you please confirm if this script is supposed to be part of the repository? If so, would it be possible to add it, or could you provide guidance on how to proceed without it?

Thank you for your assistance and for sharing your project.

matthewdhull commented 8 months ago

Thank you @chen37058 for this comment and I have added the script.