forked from mindspore-Ecosystem/mindspore
fix inference bug
This commit is contained in:
parent
3c8b0c7812
commit
9d4ba28486
|
@ -27,6 +27,6 @@ fi
|
|||
DATA_PATH=$1
|
||||
GPU_ID=$2
|
||||
|
||||
python -u validate.py --root_dir "${DATA_PATH}/dataset_low_res" --dataset_name blendedmvs --save_visual --img_wh 768 576 --n_views ${VIEW_NUM} --n_depths 32 16 8 --interval_ratios 4.0 2.0 1.0 --levels 3 --split val --gpu_id ${GPU_ID} > log.txt 2>&1 &
|
||||
CUDA_VISIBLE_DEVICES=${GPU_ID} python -u validate.py --root_dir "${DATA_PATH}/dataset_low_res" --dataset_name blendedmvs --img_wh 768 576 --n_views ${VIEW_NUM} --n_depths 32 16 8 --interval_ratios 4.0 2.0 1.0 --levels 3 --split val > log.txt 2>&1 &
|
||||
|
||||
cd ..
|
|
@ -432,5 +432,5 @@ def groupwise_correlation(v1, v2, groups, dim):
|
|||
reshaped_size = (n, d, h, w, groups, c // groups)
|
||||
v1_reshaped = v1.view(*reshaped_size)
|
||||
v2_reshaped = v2.view(*reshaped_size)
|
||||
vc = P.ReduceSum()(v1_reshaped * v2_reshaped, dim + 1)
|
||||
vc = P.Transpose()(P.ReduceSum()(v1_reshaped * v2_reshaped, 5), (0, 4, 1, 2, 3))
|
||||
return vc
|
||||
|
|
Loading…
Reference in New Issue