IliaLarchenko
commited on
Commit
•
0764ff9
1
Parent(s):
76386e9
updated readme
Browse files- README.md +27 -12
- configs/augmentations.json +50 -1
README.md
CHANGED
@@ -1,27 +1,42 @@
|
|
1 |
# albumentations-demo
|
2 |
|
3 |
-
This service is created to demonstrate abilities of the Albumentations - a library for
|
4 |
|
|
|
|
|
|
|
5 |
|
6 |
-
|
7 |
-
The service still has some known bugs and requires a lot of refactoring, don't be surprised if you see any error)
|
8 |
-
But it already works!
|
9 |
|
10 |
-
|
11 |
-
## How to use:
|
12 |
```
|
13 |
git clone https://github.com/IliaLarchenko/albumentations-demo
|
14 |
cd albumentations-demo
|
15 |
pip install -r requirements.txt
|
16 |
-
streamlit run src/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
```
|
|
|
18 |
|
19 |
-
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
![screenshot](docs/readme.jpg?raw=true)
|
22 |
|
23 |
|
24 |
-
##
|
25 |
-
|
26 |
-
[
|
27 |
-
|
|
|
1 |
# albumentations-demo
|
2 |
|
3 |
+
This service is created to demonstrate abilities of the [Albumentations](https://github.com/albumentations-team/albumentations) - a library for efficient image augmentations.
|
4 |
|
5 |
+
## Easy start
|
6 |
+
You can play with this service right now [https://albumentations-demo.herokuapp.com/](https://albumentations-demo.herokuapp.com/)
|
7 |
+
(It is deployed on free service with very limited computing power and can be quite unstable)
|
8 |
|
9 |
+
If you would like to run it locally follow the installation instruction.
|
|
|
|
|
10 |
|
11 |
+
## Installation
|
|
|
12 |
```
|
13 |
git clone https://github.com/IliaLarchenko/albumentations-demo
|
14 |
cd albumentations-demo
|
15 |
pip install -r requirements.txt
|
16 |
+
streamlit run src/app.py
|
17 |
+
```
|
18 |
+
|
19 |
+
In your terminal you will see the link to the running local service similar to :
|
20 |
+
```console
|
21 |
+
You can now view your Streamlit app in your browser.
|
22 |
+
|
23 |
+
Network URL: http://YOUR_LOCAL_IP:8501
|
24 |
+
External URL: http://YOUR_GLOBAL_IP:8501
|
25 |
```
|
26 |
+
Just follow the local link to use the service.
|
27 |
|
28 |
+
## How to use
|
29 |
|
30 |
+
The interface is very simple and intuitive:
|
31 |
+
1. On the left you have a control sidebar. You can choose the image and the transformation.
|
32 |
+
2. After that you will see the control elements for the every parameter this transformation has.
|
33 |
+
3. Every time you change any parameter you will see the augmented version of the image on the right side of your screen.
|
34 |
+
4. Below the images you can find a code for calling of the augmentation with selected parameters.
|
35 |
+
5. You can also find there the original docstring for this transformation.
|
36 |
![screenshot](docs/readme.jpg?raw=true)
|
37 |
|
38 |
|
39 |
+
## Links
|
40 |
+
* Albumentations library: [github.com/albumentations-team/albumentations](https://github.com/albumentations-team/albumentations)
|
41 |
+
* Image Source: [pexels.com/royalty-free-images](https://pexels.com/royalty-free-images/)
|
42 |
+
* Streamlit - framework powering this app [github.com/streamlit/streamlit](https://github.com/streamlit/streamlit)
|
configs/augmentations.json
CHANGED
@@ -1109,5 +1109,54 @@
|
|
1109 |
"ToGray": [],
|
1110 |
"ToSepia": [],
|
1111 |
"Transpose": [],
|
1112 |
-
"VerticalFlip": []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1113 |
}
|
|
|
1109 |
"ToGray": [],
|
1110 |
"ToSepia": [],
|
1111 |
"Transpose": [],
|
1112 |
+
"VerticalFlip": [],
|
1113 |
+
|
1114 |
+
|
1115 |
+
"OpticalDistortion": [
|
1116 |
+
{
|
1117 |
+
"defaults": [
|
1118 |
+
-0.3,
|
1119 |
+
0.3
|
1120 |
+
],
|
1121 |
+
"limits_list": [
|
1122 |
+
-2.0,
|
1123 |
+
2.0
|
1124 |
+
],
|
1125 |
+
"param_name": "distort_limit",
|
1126 |
+
"type": "num_interval"
|
1127 |
+
}, {
|
1128 |
+
"defaults": [-0.05, 0.05],
|
1129 |
+
"limits_list": [
|
1130 |
+
-1.0,
|
1131 |
+
1.0
|
1132 |
+
],
|
1133 |
+
"param_name": "shift_limit",
|
1134 |
+
"type": "num_interval"
|
1135 |
+
},
|
1136 |
+
{
|
1137 |
+
"options_list": [
|
1138 |
+
0,
|
1139 |
+
1,
|
1140 |
+
2,
|
1141 |
+
3,
|
1142 |
+
4
|
1143 |
+
],
|
1144 |
+
"param_name": "interpolation",
|
1145 |
+
"type": "radio"
|
1146 |
+
},
|
1147 |
+
{
|
1148 |
+
"options_list": [
|
1149 |
+
0,
|
1150 |
+
1,
|
1151 |
+
2,
|
1152 |
+
3,
|
1153 |
+
4
|
1154 |
+
],
|
1155 |
+
"param_name": "border_mode",
|
1156 |
+
"type": "radio"
|
1157 |
+
},
|
1158 |
+
{
|
1159 |
+
"param_name": "value",
|
1160 |
+
"type": "rgb"
|
1161 |
+
}]
|
1162 |
}
|