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

General split to ShardDescriptor and ShardDataset #206

Conversation

aleksandr-mokrov
Copy link
Contributor

@aleksandr-mokrov aleksandr-mokrov commented Oct 11, 2021

ShardDescriptor is split into ShardDescriptor and ShardDataset.
ShardDescriptor is responsible for providing specific dataset by type, description, target and sample shapes. Also it responsible for downloading data for test examples.
ShardDataset is responsible for providing data. It's implements methods len and getitem.

@aleksandr-mokrov aleksandr-mokrov added the enhancement New feature or request label Oct 11, 2021
@aleksandr-mokrov aleksandr-mokrov self-assigned this Oct 11, 2021
@aleksandr-mokrov aleksandr-mokrov marked this pull request as ready for review October 19, 2021 09:08
aleksandr-mokrov and others added 5 commits October 26, 2021 18:52
…sir_shard_descriptor.py

Co-authored-by: Ilya Trushkin <ilya.trushkin@intel.com>
…rket_shard_descriptor.py

Co-authored-by: Ilya Trushkin <ilya.trushkin@intel.com>
…rket_shard_descriptor.py

Co-authored-by: Ilya Trushkin <ilya.trushkin@intel.com>
…ir_unet/envoy/kvasir_shard_descriptor.py

Co-authored-by: Ilya Trushkin <ilya.trushkin@intel.com>
# Conflicts:
#	openfl-tutorials/interactive_api/PyTorch_Kvasir_UNet/workspace/PyTorch_Kvasir_UNet.ipynb
#	openfl-tutorials/interactive_api/PyTorch_Market_Re-ID/envoy/shard_config_one.yaml
#	openfl-tutorials/interactive_api/PyTorch_Market_Re-ID/envoy/shard_config_two.yaml
@property
def sample_shape(self):
"""Return the sample shape info."""
return self._sample_shape
return ['300', '400', '3']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, why we now hard code this? It is probably the only example with parametrized sample shape.
Kvasir is also probably the only example with a functioning dummy shard descriptor

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense, was changed

@alexey-gruzdev alexey-gruzdev added this to the v1.2.1 milestone Nov 1, 2021
Copy link
Contributor

@IgorDavidyuk IgorDavidyuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

Copy link
Contributor

@igor-davidyuk igor-davidyuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me as well

@alexey-gruzdev alexey-gruzdev merged commit 8b7e635 into securefederatedai:develop Nov 1, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Nov 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants