2022-01-31

Got unexpected field names: ['is_dynamic_op']

I am working on a low light video processing project where I am getting some errors in some areas, For this code...

params = trt.DEFAULT_TRT_CONVERSION_PARAMS._replace(
    precision_mode='FP16',
    is_dynamic_op = True)

I am getting this error...

> --------------------------------------------------------------------------- ValueError                                Traceback (most recent call
> last) <ipython-input-8-326230ed5373> in <module>()
>       2 params = trt.DEFAULT_TRT_CONVERSION_PARAMS._replace(
>       3     precision_mode='FP16',
> ----> 4     is_dynamic_op = True)
>       5 
>       6 # Convert the model
> 
> /usr/lib/python3.7/collections/__init__.py in _replace(_self, **kwds)
>     414         result = _self._make(map(kwds.pop, field_names, _self))
>     415         if kwds:
> --> 416             raise ValueError(f'Got unexpected field names: {list(kwds)!r}')
>     417         return result
>     418 
> 
> ValueError: Got unexpected field names: ['is_dynamic_op']

I have used these libraries,

from glob import glob
from PIL import Image
from matplotlib import pyplot as plt
from mirnet.inference import Inferer
from mirnet.utils import download_dataset, plot_result
from tensorflow.python.compiler.tensorrt import trt_convert as trt

import tensorflow as tf
import numpy as np
import time

I can't figure out how to solve the problem, I have imported all the libraries but am still stuck, please help...



from Recent Questions - Stack Overflow https://ift.tt/X1H5hV2mi
https://ift.tt/Mhf8FyP6J

No comments:

Post a Comment