模型推理(需执行于GPU设备)

模型推理(需执行于GPU设备)#

应用

执行脚本

DVS-MNIST

python3 test.py --config clif3fc3dm_itout-b16x1-dvsmnist --checkpoint best_clif3.pth --use_lyngor 0 --use_legacy 0

python3 test.py --config clif5fc2dm_itout-b16x1-dvsmnist --checkpoint best_clif5.pth --use_lyngor 0 --use_legacy 0

DVS-Gesture

python3 test.py --config clif3flif2dg_itout-b16x1-dvsgesture --checkpoint best_clif3.pth --use_lyngor 0 --use_legacy 0

python3 test.py --config clif7fc1dg_itout-b16x1-dvsgesture --checkpoint best_clif7.pth --use_lyngor 0 --use_legacy 0

CIFAR10-DVS

python3 test.py --config clif5fc2cd_itout-b64x1-cifar10dvs --checkpoint best_clif5.pth --use_lyngor 0 --use_legacy 0

python3 test.py --config clif7fc1cd_itout-b64x1-cifar10dvs --checkpoint best_clif7.pth --use_lyngor 0 --use_legacy 0

python3 test.py --config resnetlif50-lite-itout-b8x1-cifar10dvs --checkpoint latest.pth --use_lyngor 0 --use_legacy 0

python3 test.py --config resnetlif50-itout-b8x1-cifar10dvs --checkpoint latest.pth --use_lyngor 0 --use_legacy 0

python3 test.py --config resnetlif50-it-b16x1-cifar10dvs --checkpoint latest.pth --use_lyngor 0 --use_legacy 0

IMDB

python3 test.py --config fasttext-b16x1-imdb --checkpoint latest.pth --use_lyngor 0 --use_legacy 0

Jester

python3 test.py --config resnetlif18-itout-b20x4-16-jester --checkpoint latest.pth --use_lyngor 0 --use_legacy 0

python3 test.py --config resnetlif18-lite-itout-b20x4-16-jester --checkpoint latest.pth --use_lyngor 0 --use_legacy 0

Luna16Cls

python3 test.py --config clif3fc3lc_itout-b16x1-luna16cls --checkpoint latest.pth --use_lyngor 0 --use_legacy 0

RGB-Gesture

python3 test.py --config clif3flif2rg_itout-b16x1-rgbgesture --checkpoint latest.pth --use_lyngor 0 --use_legacy 0

ESImagenet

python3 test.py --config resnetlif18-itout-b64x4-esimagenet --checkpoint latest.pth --use_lyngor 0 --use_legacy 0

CANN

applications/videotracking/CANN/ 路径下:

python3 infer_gpu.py

乐曲识别

applications/onlinelearning/hebb/music_recognization 路径下:

python3 main.py --use_lyngor 0 --use_legacy 0

位置识别

applications/robotics/placerecog/src/main 路径下:

python3 main_inference.py --config_file ../config/room_setting.ini --use_lyngor 0 --use_legacy 0 --c 0

DreamerV2

applications/functionalBII/worldmodel 路径下:

python3 launch_infer.py --configs defaults atari atari_pong --code_adapt 0 --run_apu 0 --compile_apu 0 --render 0 --device cuda:0 --checkpoint './Atari-Pong.pt' --model analog

python3 launch_infer.py --configs defaults atari atari_pong --code_adapt 1 --run_apu 0 --compile_apu 0 --render 0 --device cuda:0 --checkpoint './Atari-Pong_spike.pt' --model spike

python3 launch_infer.py --configs defaults atari atari_breakout --code_adapt 0 --run_apu 0 --compile_apu 0 --render 0 --device cuda:0 --checkpoint './Atari-Breakout.pt' --model analog

python3 launch_infer.py --configs defaults atari atari_spaceinvaders --code_adapt 0 --run_apu 0 --compile_apu 0 --render 0 --device cuda:0 --checkpoint './Atari-Space_Invaders.pt' --model analog

PCNN

python3 pcnn_sim.py --compile_apu 0 --device cuda:0 --render 1

ZO-SGD

applications/onlinelearning/ZO-SGD/ 路径下:

python3 main.py --use_lyngor 0 --use_legacy 0

MNIST编码

python3 test.py --config clif3fc3mnrate_itout-b128x1-mnist --checkpoint latest_rate.pth --use_lyngor 0 --use_legacy 0

python3 test.py --config clif3fc3mntime_itout-b128x1-mnist --checkpoint latest_time.pth --use_lyngor 0 --use_legacy 0

python3 test.py --config clif3fc3mnpop_itout-b64x1-mnist --checkpoint latest_pop.pth --use_lyngor 0 --use_legacy 0

St-yolo

applications/dvsdetection/st-yolo/ 路径下:

python3 gpu_infer.py

python3 gpu_show.py

High-speed-

turntable

applications/dvsdetection/high-speed-turntable/ 路径下:

python3 val.py

python3 detect.py