Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic classification crashes with Classifier Widget error #62

Closed
mlopezp opened this issue Oct 19, 2022 · 4 comments
Closed

Automatic classification crashes with Classifier Widget error #62

mlopezp opened this issue Oct 19, 2022 · 4 comments

Comments

@mlopezp
Copy link

mlopezp commented Oct 19, 2022

I am trying to train a classifier for my images. I was able to export a training data set, but when I clicked on the robot to select my classifier the program crashed with the error below. Seems like there's a problem displaying the QtClassifierWidget due to missing keys.

Traceback (most recent call last):
  File "taglab.py", line 4420, in selectClassifier
    self.classifierWidget = QtClassifierWidget(self.available_classifiers, parent=self)
  File "C:\Program Files\TagLab-main\source\QtClassifierWidget.py", line 82, in __init__
    self.editClasses = QLineEdit(self.classes2str(classifiers[0]["Classes"]))
  File "C:\Program Files\TagLab-main\source\QtClassifierWidget.py", line 329, in classes2str
    for key in classes_dict.keys():
AttributeError: 'list' object has no attribute 'keys'
@maxcorsini
Copy link
Member

Hi mlopezp,

this seems a bug. Can you send me your config.json file ?

Thank you.

Best,
Massimiliano

@mlopezp
Copy link
Author

mlopezp commented Oct 24, 2022 via email

@maxcorsini
Copy link
Member

Hi Mauricio,

I do not see the file. Perhaps it is not possible to attach a JSON file. If this is the problem, send me it directly to my email address. You can find it in the official TagLab web page (taglab.isti.cnr.it/team).

Cheers

@mlopezp
Copy link
Author

mlopezp commented Nov 6, 2022

Just following up here.
Your changes to the config file worked.
Thanks!

@mlopezp mlopezp closed this as completed Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants