Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fsl calibrate-laser args incorrect #21

Open
ntlhui opened this issue Feb 3, 2025 · 1 comment
Open

fsl calibrate-laser args incorrect #21

ntlhui opened this issue Feb 3, 2025 · 1 comment
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@ntlhui
Copy link
Contributor

ntlhui commented Feb 3, 2025

fsl calibrate-laser *.ORF --lens-calibration fsl-01d-lens-raw.pkg --rows 17 --columns 24 --square-size 30 --output fsl-01d-laser.pkg --label-studio-json path/to/the/exported/label-studio.json

$ fsl calibrate-laser ./mnt/Laser\ Calibration/*.ORF --lens-calibration ./calibrations/fsl-07d-lens-raw.pkg --rows 17 --columns 24 --square-size 30 --output Results/fsl-07d-laser.pkg --label-studio-json Results/calibration_laser_results.json
/home/ubuntu/.local/share/pipx/venvs/fishsense-lite/lib/python3.12/site-packages/pyfishsensedev/library/homography/models/lightglue.py:29: FutureWarning: `torch.cuda.amp.custom_fwd(args...)` is deprecated. Please use `torch.amp.custom_fwd(args..., device_type='cuda')` instead.
  @torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
usage: fsl [-h] {generate-ray-config,calibrate-laser,calibrate-lens,field-calibrate-laser,preprocess,process} ...
fsl: error: unrecognized arguments: --label-studio-json Results/calibration_laser_results.json
@ntlhui ntlhui added bug Something isn't working documentation Improvements or additions to documentation labels Feb 3, 2025
@ntlhui
Copy link
Contributor Author

ntlhui commented Feb 3, 2025

$ fsl calibrate-laser --help
/home/ubuntu/.local/share/pipx/venvs/fishsense-lite/lib/python3.12/site-packages/pyfishsensedev/library/homography/models/lightglue.py:29: FutureWarning: `torch.cuda.amp.custom_fwd(args...)` is deprecated. Please use `torch.amp.custom_fwd(args..., device_type='cuda')` instead.
  @torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
usage: fsl calibrate-laser [-h] -c COLUMNS [--debug-path DEBUG_PATH] [-j LASER_LABEL_STUDIO_JSON] -l LENS_CALIBRATION [--max-cpu MAX_NUM_CPU] [--max-gpu MAX_NUM_GPU] -o OUTPUT_PATH [--overwrite] -r ROWS -s SQUARE_SIZE [--config CONFIG] [--save-config SAVE_CONFIG] data [data ...]

Calibrates the laser for the FishSense Lite product line.

positional arguments:
  data                  A glob that represents the data to process.

options:
  -h, --help            show this help message and exit
  -c COLUMNS, --columns COLUMNS
                        The number of columns in the checkerboard.
  --debug-path DEBUG_PATH
                        Sets the debug path for storing debug images.
  -j LASER_LABEL_STUDIO_JSON, --laser-label-studio-json LASER_LABEL_STUDIO_JSON
                        An export of JSON tasks from Label Studio
  -l LENS_CALIBRATION, --lens-calibration LENS_CALIBRATION
                        Lens calibration package for the FishSense Lite.
  --max-cpu MAX_NUM_CPU
                        Sets the maximum number of CPU cores allowed.
  --max-gpu MAX_NUM_GPU
                        Sets the maximum number of GPU kernels allowed.
  -o OUTPUT_PATH, --output OUTPUT_PATH
                        The path to store the resulting calibration.
  --overwrite           Overwrite the calibration if it exists.
  -r ROWS, --rows ROWS  The number of rows in the checkerboard.
  -s SQUARE_SIZE, --square-size SQUARE_SIZE
                        The size of a checkerboard square in mm.
  --config CONFIG       A yaml configuration file which can be overrode by the command line arguments.
  --save-config SAVE_CONFIG
                        A path to save a yaml file with the current configuration of the command line arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants