Closed elb3k closed 2 years ago
There is bug with process function in predict.py, which makes this function usable only on first call.
The source of this problem comes from config_reader.py: param['scale_search'] = map(float, param['scale_search'])
param['scale_search'] = map(float, param['scale_search'])
where param['scale_search'] becomes usable only once in process.py. next calls to process function will return unchanged image.
param['scale_search']
By changing param['scale_search'] = map(float, param['scale_search']) to param['scale_search'] = list(map(float, param['scale_search']))
param['scale_search'] = list(map(float, param['scale_search']))
we can solve this problem
There is bug with process function in predict.py, which makes this function usable only on first call.
The source of this problem comes from config_reader.py:
param['scale_search'] = map(float, param['scale_search'])
where
param['scale_search']
becomes usable only once in process.py. next calls to process function will return unchanged image.By changing
param['scale_search'] = map(float, param['scale_search'])
toparam['scale_search'] = list(map(float, param['scale_search']))
we can solve this problem