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
MXNet example as a plugin to OpenFL #349
MXNet example as a plugin to OpenFL #349
Conversation
ViktoriiaRomanova
commented
Feb 24, 2022
•
edited
edited
- Added mxnet tutorial and adapter
- This is the first version, it works for CPU and GPU.
added mxnet tutorial and adapter
Jenkins please retry a build |
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/landmark_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/landmark_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/landmark_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/landmark_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/landmark_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/landmark_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/envoy_config_one.yaml
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/landmark_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/landmark_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/workspace/mxnet_adapter.py
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/workspace/mxnet_adapter.py
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/workspace/mxnet_adapter.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/workspace/mxnet_adapter.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/landmark_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/landmark_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/landmark_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/landmark_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/landmark_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/landmark_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/landmark_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/sd_requirements.txt
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/sd_requirements.txt
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/workspace/requirements.txt
Outdated
Show resolved
Hide resolved
edited README add cuda monitor plugin edited list libraries in sd_requirements and requirements edited shard_descriptor
openfl-tutorials/interactive_api/MXNet_landmarks/workspace/mxnet_adapter.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/landmark_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/workspace/mxnet_adapter.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/workspace/mxnet_adapter.py
Outdated
Show resolved
Hide resolved
edited list libraries requirements Minor fixes shard descriptor and mxnet adapter
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/landmark_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/landmark_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/envoy/landmark_shard_descriptor.py
Show resolved
Hide resolved
openfl-tutorials/interactive_api/MXNet_landmarks/workspace/MXNet_landmarks.ipynb
Outdated
Show resolved
Hide resolved
if self._target_shape[0] != '1': | ||
raise ValueError('Target has a wrong shape') | ||
|
||
def process_data(self, name_csv_file) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we do processing in runtime, without saving additional files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we can, but then we have to process csv file every time we start the experiment and keep all images in RAM. I guess processing them just once is better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand the situation correctly, there is a single csv file with all the labels, and you read and split it in at Envoy start time.
In this situation, you do not need to save separate labels to disk, just keep them in memory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are right, we can do it. I just thought that will be easier to process them the same way as a picture.
Co-authored-by: Igor Davidyuk <igor.davidyuk@intel.com>