Skip to content

Commit

Permalink
change object-config.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
rostyslavhereha committed Jun 11, 2024
1 parent 4e36077 commit 5910f2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions auto_training/utils/export_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ def export_for_lv(args):
cfg.author = args.author
export_folder = os.path.join(cfg.work_dir, "export")
recreate_dir(export_folder)
model_name = f"pvt_detector_{cfg.project_name}_{time.strftime('%y%m%d')}"
model_name = "pvt_detector"
write_detector_yaml(cfg=cfg, write_dir=export_folder, name=model_name)
write_deepstream_config(cfg=cfg, write_dir=export_folder, name=model_name)
#write_deepstream_config(cfg=cfg, write_dir=export_folder, name=model_name)
write_info_file(cfg=cfg, write_dir=export_folder)
copy_training_specs(cfg=cfg, write_dir=export_folder)
print(f"Training info exported successfully to: {export_folder}")
Expand Down
5 changes: 2 additions & 3 deletions run_make_nvinfer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
MODEL_DIR=$1
MODEL_DIR=${MODEL_DIR%%/}
shift
current_date=$(date +"%d_%m_%Y")

CLASSES=( "$@" )
CLASSES=$(IFS=';' ; echo "${CLASSES[*]}")
Expand All @@ -17,8 +16,8 @@ offsets=123.675;116.28;103.53
model-color-format=0
scaling-filter=3 # 0=Nearest, 1=Bilinear 2=VIC-5 Tap interpolation 3=VIC-10 Tap interpolation
onnx-file=pvt_detector_$current_date.onnx
model-engine-file=pvt_detector_$current_date.onnx_b1_gpu0_fp16.engine
onnx-file=pvt_detector.onnx
model-engine-file=pvt_detector.onnx_b1_gpu0_fp16.engine
# model config
infer-dims=3;384;512
Expand Down

0 comments on commit 5910f2d

Please sign in to comment.