Iterating through the IC causes an unusual TypeError
Closed this issue · 1 comments
kyrieb-ekat commented
On Iteration 1 in the Interactive Classifier, using training data produced by a previous run, an odd error is produced:
TypeError: ‘<’ not supported between instances of ‘bytes’ and ‘str’
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/celery/app/trace.py", line 412, in trace_task
R = retval = fun(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/celery/app/trace.py", line 704, in __protected_call__
return self.run(*args, **kwargs)
File "/code/Rodan/rodan/jobs/base.py", line 773, in run
retval = self.run_my_task(inputs, settings, arg_outputs)
File "/code/Rodan/rodan/jobs/interactive_classifier/wrapper.py", line 160, in run_my_task
serialize_data(settings)
File "/code/Rodan/rodan/jobs/interactive_classifier/interactive_classifier.py", line 316, in serialize_data
settings['class_names_json'] = serialize_class_names_to_json(settings)
File "/code/Rodan/rodan/jobs/interactive_classifier/interactive_classifier.py", line 302, in serialize_class_names_to_json
return json.dumps(sorted(list(name_set)))
TypeError: '<' not supported between instances of 'bytes' and 'str'
This has happened on both staging and production, and was encountered by @JoyfulGen in her runs as well.
This is preventing the further training of the IC, which hinders large scale processing through the NIC for the Bach Project.
homework36 commented
Fixed. Now waiting for staging to be updated.