Import via Links
If your images are storing on the server that available from the browser you can use "Links" plugin, to use them on the Supervisely without duplicating.

Import images via "Links" plugin

1
http://192.168.1.49:4321/dataset_1/00003.png
2
http://192.168.1.49:4321/dataset_100004.png
Copied!
Each link should be placed on a separate line. After importing into Supervisely, a separate dataset will be created for each .txt file.

Step 2: Go to the Explore page

Select "Plugins" tab. Find "Links" plugin in the list and click "Add" button.

Step 3: Import files

Go to the "Import" page. Select "Links" plugin and drag and drop your .txt files.
Enter project name and click "Start import" button.
Import will be started after files uploaded to the server.
After task completed go to the "Projects" page

Automatic files with links generation

For the following steps you need have docker and docker-compose to be installed
Create 'docker-compose.yml' with following content
1
version: '2.2'
2
โ€‹
3
services:
4
app:
5
image: supervisely/links-plugin-txt-generator
6
environment:
7
- IMAGES_SERVER_PATH=<images_server_url>
8
volumes:
9
- <path_to_your_images_folder>:/tmp/data-src:ro
10
- <path_to_out_txt_files>/:/tmp/data-dest
Copied!
If you doesn't have images server, you can add following code in the docker-compose
port must be available from the browser
1
server:
2
image: nginx:1.15.8-alpine
3
volumes:
4
- <path_to_your_images_folder>:/usr/share/nginx/html:ro
5
ports:
6
- "<port>:80"
Copied!
For example:
1
version: '2.2'
2
โ€‹
3
services:
4
app:
5
image: supervisely/links-plugin-txt-generator
6
environment:
7
- IMAGES_SERVER_PATH=http://192.168.1.49:4321
8
volumes:
9
- ./data/:/tmp/data-src:ro
10
- ./output/:/tmp/data-dest
11
โ€‹
12
server:
13
image: nginx:1.15.8-alpine
14
volumes:
15
- ./data/:/usr/share/nginx/html:ro
16
ports:
17
- "4321:80"
Copied!
Next run the following command in the terminal:
1
docker-compose up -d server
2
docker-compose up app
Copied!
After app container complete execution, you can import files from <path_to_out_txt_files> folder as described above.
Last modified 1yr ago