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.
http://192.168.1.49:4321/dataset_1/00003.pnghttp://192.168.1.49:4321/dataset_100004.png
Each link should be placed on a separate line. After importing into Supervisely, a separate dataset will be created for each .txt file.
Select "Plugins" tab. Find "Links" plugin in the list and click "Add" button.
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
For the following steps you need have docker
and docker-compose
to be installed
Create 'docker-compose.yml' with following content
version: '2.2'services:app:image: supervisely/links-plugin-txt-generatorenvironment:- IMAGES_SERVER_PATH=<images_server_url>volumes:- <path_to_your_images_folder>:/tmp/data-src:ro- <path_to_out_txt_files>/:/tmp/data-dest
If you doesn't have images server, you can add following code in the docker-compose
port
must be available from the browser
server:image: nginx:1.15.8-alpinevolumes:- <path_to_your_images_folder>:/usr/share/nginx/html:roports:- "<port>:80"
For example:
version: '2.2'services:app:image: supervisely/links-plugin-txt-generatorenvironment:- IMAGES_SERVER_PATH=http://192.168.1.49:4321volumes:- ./data/:/tmp/data-src:ro- ./output/:/tmp/data-destserver:image: nginx:1.15.8-alpinevolumes:- ./data/:/usr/share/nginx/html:roports:- "4321:80"
Next run the following command in the terminal:
docker-compose up -d serverdocker-compose up app
After app
container complete execution, you can import files from <path_to_out_txt_files>
folder as described above.