-
Notifications
You must be signed in to change notification settings - Fork 179
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
General split to ShardDescriptor and ShardDataset #206
Conversation
732dc02
to
fcefd13
Compare
openfl-tutorials/interactive_api/PyTorch_Market_Re-ID/envoy/market_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/PyTorch_Market_Re-ID/envoy/market_shard_descriptor.py
Outdated
Show resolved
Hide resolved
…into shard_dataset_shard_descriptor
openfl-tutorials/interactive_api/PyTorch_Kvasir_UNet/envoy/kvasir_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/PyTorch_Market_Re-ID/envoy/market_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/PyTorch_Market_Re-ID/envoy/market_shard_descriptor.py
Outdated
Show resolved
Hide resolved
...ub/interactive_api_director/experiments/pytorch_kvasir_unet/envoy/kvasir_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/PyTorch_Kvasir_UNet/envoy/kvasir_shard_descriptor.py
Show resolved
Hide resolved
openfl-tutorials/interactive_api/PyTorch_Market_Re-ID/envoy/market_shard_descriptor.py
Show resolved
Hide resolved
openfl-tutorials/interactive_api/PyTorch_Market_Re-ID/envoy/market_shard_descriptor.py
Show resolved
Hide resolved
openfl-tutorials/interactive_api/PyTorch_Market_Re-ID/envoy/market_shard_descriptor.py
Outdated
Show resolved
Hide resolved
openfl-tutorials/interactive_api/PyTorch_Market_Re-ID/envoy/market_shard_descriptor.py
Show resolved
Hide resolved
…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'] |
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.
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
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.
Make sense, was changed
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.
looks good
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.
Looks good to me as well
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.