Hello,
I’m fresh on Jetson nano, so if simmillar topic was before, just send me link.
Machine: Jetson Nano B01
Envoirment:
Tensorflow 1.15.5, ImageAi 2.1.5
I attached messages in log file.
I guess that problem is in gpu memory, how to solve it?
Tensorflow is starting ca 1minute, after it 3-rd and next frames have ca 1,4 fps
Code below:
from imageai.Detection import VideoObjectDetection
import osexecution_path = os.getcwd()
detector = VideoObjectDetection()
#detector.setModelTypeAsYOLOv3()
detector.setModelTypeAsTinyYOLOv3()
#detector.setModelTypeAsRetinaNet()output_video = None
detector.setModelPath( os.path.join(execution_path , “yolo-tiny.h5”))
#detector.setModelPath( os.path.join(execution_path , “yolo.h5”))
#detector.setModelPath( os.path.join(execution_path , “resnet50_coco_best_v2.0.1.h5”))detector.loadModel(detection_speed=“normal”)
custom = detector.CustomObjects(person=True, bicycle=True, motorcycle=True)
video_path = detector.detectCustomObjectsFromVideo(custom_objects=custom, input_file_path=os.path.join(execution_path, “Belgrade.mp4”),
output_file_path=os.path.join(execution_path, “dark1_bgr”)
, frames_per_second=20, log_progress=True, display_percentage_probability=False, display_object_name=False)print(video_path)
log.txt (242.3 KB)