File size: 1,105 Bytes
f670afc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
sat_name=__-DFIFxvZBCn1873qkqXA_satView_polish.png

sty_name=VAMM6sIEbYAY5E6ZD_RMKg_grdView.png

# select point
# First find a starting point, then press and hold the left mouse button, draw any shape, 
# then release the left mouse button, and press 'q' on the keyboard to end the point selection process

#  better select regions near the center of the satellite image. 'q' to end select point.
# python inference/select_points.py ${sat_name}

# inference
# if you want use illumination from another image , you could add --sty_img=WsKPDHEgLwrhrJXcUU34xA_grdView.png
CUDA_VISIBLE_DEVICES=0 python offline_train_test.py --yaml=sat2density_cvact \
--test_ckpt_path=2u87bj8w \
--task=test_vid \
--demo_img=${sat_name} --sty_img=${sty_name} \
--data.root=demo_img


# make video
python inference/img2vid.py

#  visualize  vis_video/volume_data.vtk with ParaView


# python test.py --yaml=sat2density_cvact \
#     --test_ckpt_path=2u87bj8w \
#     --task=test_vid \
#     --demo_img=__-DFIFxvZBCn1873qkqXA_satView_polish.png \
#     --sty_img=VAMM6sIEbYAY5E6ZD_RMKg_grdView.png \
#     --data.root=demo_img