index d7decc6b79a085a34b60d55efc147a9e92a4fb08..5d54c66c36acbd77d4b6d6cf5ce04090f0632ce8 100644 (file)
bool __TI_show_debug_ = false;
-using namespace tinn;
-using namespace tinn::imgutil;
+using namespace tidl;
+using namespace tidl::imgutil;
using namespace cv;
#define NUM_VIDEO_FRAMES 100
signal(SIGTERM, exit);
// If there are no devices capable of offloading TIDL on the SoC, exit
- uint32_t num_dla = Executor::GetNumDevices(DeviceType::DLA);
+ uint32_t num_eve = Executor::GetNumDevices(DeviceType::EVE);
uint32_t num_dsp = Executor::GetNumDevices(DeviceType::DSP);
- if (num_dla == 0 && num_dsp == 0)
+ if (num_eve == 0 && num_dsp == 0)
{
std::cout << "TI DL not supported on this SoC." << std::endl;
return EXIT_SUCCESS;
std::string config = "j11_v2";
std::string input_file = "../test/testvecs/input/objects/cat-pet-animal-domestic-104827.jpeg";
int num_devices = 1;
- DeviceType device_type = DeviceType::DLA;
+ DeviceType device_type = (num_eve > 0 ? DeviceType::EVE:DeviceType::DSP);
ProcessArgs(argc, argv, config, num_devices, device_type, input_file);
std::cout << "Input: " << input_file << std::endl;
free(b);
}
- catch (tinn::Exception &e)
+ catch (tidl::Exception &e)
{
std::cerr << e.what() << std::endl;
status = false;
for (int i = k - 1; i >= 0; i--)
{
std::cout << k-i << ": " << imagenet_classes[sorted[i].second]
- << ", prob = " << (float) sorted[i].first / 256 << std::endl;
+ << std::endl;
}
return true;
break;
case 't': if (*optarg == 'e')
- device_type = DeviceType::DLA;
+ device_type = DeviceType::EVE;
else if (*optarg == 'd')
device_type = DeviceType::DSP;
else
"Optional arguments:\n"
" -c <config> Valid configs: j11_bn, j11_prelu, j11_v2\n"
" -n <number of cores> Number of cores to use (1 - 4)\n"
- " -t <d|e> Type of core. d -> DSP, e -> DLA\n"
+ " -t <d|e> Type of core. d -> DSP, e -> EVE\n"
" -i <image> Path to the image file\n"
" -i camera Use camera as input\n"
" -v Verbose output during execution\n"