I’m a beginner in python, I haven’t been there for a long time.
I am researching on the topic semantic segmentation of video with pixelLib. When I try to run this code, it doesn’t work.I already have downloaded PixelLib in Python and pre-trained model called Xception which has been trained on the ade20k dataset.
Website used to inform me: https://www.theclickreader.com/semantic-and-instance-segmentation-on-videos-using-pixellib/
Code used: (the code does not run for me)
I need the complete correct code to transform my video into semantic segmentation.
# Omporting the semantic_segmentation object type from pixellib.semantic
from pixellib.semantic import semantic_segmentation
# Setting the file path for the input video
input_video_file_path = "videos/test_video.mp4"
# Creating a semantic_segmentation object
segment_video = semantic_segmentation()
# Loading the Xception model trained on ade20k dataset
segment_video.load_ade20k_model("deeplabv3_xception65_ade20k.h5")
# Processing the video
segment_video.process_video_ade20k(
`input_video_file_path,
`frames_per_second`=30,
output_video_name="videos/semantic_segmentation_output.mp4",
)`

![Font not correct, charakters displayed as "[]"](https://i.stack.imgur.com/HvpAN.png)