SimCenter Forum

Artificial Intelligence in Natural Hazards Engineering => AI use in Regional Simulation (BRAILS) => Topic started by: felicia on November 07, 2021, 01:22:02 AM

Title: NotImplementedError
Post by: felicia on November 07, 2021, 01:22:02 AM
I got the error message when running the examples..
NotImplementedError: Cannot convert a symbolic Tensor (random_rotation_1/rotation_matrix/strided_slice:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported

It occurs after
Model found locally: tmp/softstory_ResNet50_V0.1.h5
Results written in file tmp/softstory_preds.csv
A default occupancy model will be used: occupancy_ResNet50_V0.2.
Model found locally: tmp/occupancy_ResNet50_V0.2.h5
Results written in file tmp/occupancy_preds.csv
A default roof type model will be used: rooftype_ResNet50_V0.2.

Does anyone know how to solve this problem?
Title: Re: NotImplementedError
Post by: fmk on November 09, 2021, 12:37:07 AM
Let us start with identifying the example are you trying to run?
Can you post the link to the webpage, and if more than 1 example is posted there, can you identify the specific example.
Title: Re: NotImplementedError
Post by: churchhealthy on September 14, 2023, 07:30:38 AM
The error message you're seeing suggests that you're attempting to make a NumPy call while passing a Tensor to the function.