[Q&A] Real-World CIFAR-10: No module named 'nvflare.app_common.executors.model_learner_executor' #2195
Replies: 4 comments 8 replies
-
@manzurelahi thank you very much for your interests and the questions! Please use branch "2.3" for NVFlare version 2.3.8. (you can |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply. I have tried, and for user name: admin, I am getting Incorrect user name or certificate:
Also How can I see see the result in plot as per step 5 and 5.1? Sorry the instruction is not very clear for me. |
Beta Was this translation helpful? Give feedback.
-
Hi @manzurelahi, the figure doesn't show because of |
Beta Was this translation helpful? Give feedback.
-
Yes, the plots are created from parsing the tensorboard files. As long as you have kept your output folder from yesterday, you can read those files. Try to use tensorboard first to see if all the results are there. Another thing to try is to use a clean python virtual environment and install all the requirements.txt from this example there. Otherwise, you can try to change the matplotlib backend https://stackoverflow.com/questions/3285193/how-to-change-matplotlib-backends |
Beta Was this translation helpful? Give feedback.
-
Python version (
python3 -V
)3.10.12
NVFlare version (
python3 -m pip list | grep "nvflare"
)2.3.8
NVFlare branch (if running examples, please use the branch that corresponds to the NVFlare version,
git branch
)main
Operating system
minimal-22_04-lts-gen2
Have you successfully run any of the following examples?
Please describe your question
Hi
I am trying to learn and run the Real-World Federated Learning with CIFAR-10:
However, I am getting
ModuleNotFoundError: No module named 'nvflare.app_common.executors.model_learner_executor'
I am happy to provide more info as needed. Thanks for your assistance.
My Scenario:
"min_clients": 2
and"num_rounds": 10
. Modified config_fed_server.json./start_fl_secure.sh 2
and skipped all other remaining steps at 3./submit_job.sh cifar10_fedavg_he 1.0
File "/home/melahi/NVFlare/nvflare-env/lib/python3.10/site-packages/nvflare/fuel/utils/json_scanner.py", line 98, in _do_scan node.processor.process_element(node) File "/home/melahi/NVFlare/nvflare-env/lib/python3.10/site-packages/nvflare/private/json_configer.py", line 135, in process_element self.process_config_element(self.config_ctx, node) File "/home/melahi/NVFlare/nvflare-env/lib/python3.10/site-packages/nvflare/private/fed/client/client_json_config.py", line 100, in process_config_element self.current_exe.executor = self.authorize_and_build_component(element, config_ctx, node) File "/home/melahi/NVFlare/nvflare-env/lib/python3.10/site-packages/nvflare/private/json_configer.py", line 104, in authorize_and_build_component return self.build_component(config_dict) File "/home/melahi/NVFlare/nvflare-env/lib/python3.10/site-packages/nvflare/private/fed/client/client_json_config.py", line 104, in build_component t = super().build_component(config_dict) File "/home/melahi/NVFlare/nvflare-env/lib/python3.10/site-packages/nvflare/fuel/utils/component_builder.py", line 86, in build_component return instantiate_class(class_path, class_args) File "/home/melahi/NVFlare/nvflare-env/lib/python3.10/site-packages/nvflare/fuel/utils/class_utils.py", line 51, in instantiate_class c = get_class(class_path) File "/home/melahi/NVFlare/nvflare-env/lib/python3.10/site-packages/nvflare/fuel/utils/class_utils.py", line 30, in get_class module_ = importlib.import_module(module_name) File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked ModuleNotFoundError: No module named 'nvflare.app_common.executors.model_learner_executor'
Beta Was this translation helpful? Give feedback.
All reactions