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

'EasyDict' object has no attribute 'settings' when trying to run the server #16

Open
MatthewMHughes opened this issue Nov 17, 2019 · 0 comments

Comments

@MatthewMHughes
Copy link

MatthewMHughes commented Nov 17, 2019

Hi, i have been trying to run the server however i have been given this bug:
'EasyDict' object has no attribute 'settings'.
This happens when the config is passed from server.py into serverstate.py and config.settings is passed into GanTester.
If i print each key in config.keys(), i get the following list:
netname
meta
default_ranking
quantile_threshold
iou_threshold
iqr_threshold
segcolors
layers,
none of them being settings. Am i missing something here?
i have tried importing and running server.py in google colab as well as using the command line interface and getting the same bug for both.

Edit1: I have realised why i don't have a settings attribute. In the main file, the settings is created by creating a dictionary of all the arguments passed in when running netdissect on the command line. The generate_report() function in dissection.py will pass the settings into dissect.json which is the config that is passed into load_projects() but only if there is a value for settings. The value for settings is defaulted to None and since i'm importing dissection.py into google colab, the settings value doesn't change and isn't passed into the top_record dictionary which stores the report. Therefore, config.settings doesn't exist and so i get the bug from above. I am going to work on editing the dissection code so that it adds a settings field to the report. If i can get that working, i will post the updated version here so that people are able to dissect a model and load the server to view the dissection without using the command line.

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

1 participant