mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-15 04:13:57 +08:00
restructuring debugging tools doc (#647)
* not done; restrucutre debugging part; * 1) fixed all developer guides 2) fixed first_nerf error 3) moved run_actions * removed md
This commit is contained in:
1 parent
4d5a1363b1
commit
af58b32cc8
12 files changed
+161
-198
No files matched your search
@@ -63,7 +63,7 @@ for dataset in ${DATASETS[@]}; do
|
||||
export CUDA_VISIBLE_DEVICES=${GPU_IDX[$idx]}
|
||||
config_path="${output_dir}/blender_${dataset}_${timestamp::-7}/${method_name}/${timestamp}/config.yml"
|
||||
ns-eval --load-config=${config_path} \
|
||||
--output-path=${output_dir}/${method_name}/blender_${timestamp}.json &
|
||||
--output-path=${output_dir}/${method_name}/blender_${dataset}_${timestamp}.json &
|
||||
echo "Launched ${config_path} on gpu ${GPU_IDX[$idx]}"
|
||||
|
||||
# update gpu
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
helpFunction_flame()
|
||||
{
|
||||
echo "Usage: $0 -o output_file -p program"
|
||||
echo -e "\t-o output .svg filename, where to save flame graph"
|
||||
echo -e "\t-p .py program we want to profile with associated arguments"
|
||||
exit 1 # Exit program after printing help
|
||||
}
|
||||
|
||||
helpFunction_top()
|
||||
{
|
||||
echo "Usage: $0 -p program"
|
||||
echo -e "\t-p .py program we want to profile with associated arguments"
|
||||
exit 1 # Exit program after printing help
|
||||
}
|
||||
|
||||
|
||||
while getopts "t:o:p" opt; do
|
||||
case "$opt" in
|
||||
t ) type="$OPTARG" ;;
|
||||
o ) output_file="$OPTARG" ;;
|
||||
p ) program="$OPTARG" ;;
|
||||
? ) helpFunction ;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ -z "$type" ]; then
|
||||
echo "Missing profiling type (flame / top)"
|
||||
exit 1
|
||||
fi
|
||||
shift $((OPTIND-1))
|
||||
program="$@"
|
||||
program=${program/"--"/"-- --"}
|
||||
|
||||
# Print helpFunction in case parameters are empty
|
||||
if [[ "$type" = "flame" ]]; then
|
||||
if [ -z "$output_file" ] || [ -z "$program" ]; then
|
||||
echo "Some or all of the parameters are empty";
|
||||
helpFunction_flame
|
||||
fi
|
||||
command=`echo py-spy record -o "$output_file" python "$program"`
|
||||
echo "Running..." $command
|
||||
eval "$command"
|
||||
elif [[ "$type" = "top" ]]; then
|
||||
if [ -z "$program" ]; then
|
||||
echo "Some or all of the parameters are empty";
|
||||
helpFunction_top
|
||||
fi
|
||||
command=`echo py-spy top python "$program"`
|
||||
echo "Running..." $command
|
||||
eval "$command"
|
||||
fi
|
||||
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user