Skip to content

Instantly share code, notes, and snippets.

@rohitg00
Last active July 4, 2020 21:01
Show Gist options
  • Save rohitg00/4e1fedaa9538c6417238fcb3b0123846 to your computer and use it in GitHub Desktop.
Save rohitg00/4e1fedaa9538c6417238fcb3b0123846 to your computer and use it in GitHub Desktop.
#Github gist by Rohit Ghumare to augment and create replicas of images
[
{
"dst": "$data",
"src": [
"Dataset/*"
],
"action": "data",
"settings": {
"classes_mapping": "default"
}
},
{
"dst": "$flip_vert",
"src": [
"$data"
],
"action": "flip",
"settings": {
"axis": "vertical"
}
},
{
"dst": "Dataset_covid",
"src": [
"$data",
"$resized_result",
"$resized_result2",
"$noise_result",
"$flip_vert"
],
"action": "supervisely",
"settings": {}
},
{
"action": "resize",
"src": [
"$data"
],
"dst": "$resized_result",
"settings": {
"width": 800,
"height": -1,
"aspect_ratio": {
"keep": true
}
}
},
{
"action": "noise",
"src": [
"$data"
],
"dst": "$noise_result",
"settings": {
"mean": 10,
"std": 60
}
},
{
"action": "resize",
"src": [
"$data"
],
"dst": "$resized_result2",
"settings": {
"width": 300,
"height": -1,
"aspect_ratio": {
"keep": true
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment