Skip to content

Files for Windows users #55

Open
Open
@Yarroudh

Description

@Yarroudh

``Hello,

I've created these files download_semantic3d.bat and compile_wrappers.bat for those using Windows instead of Linux or WSL:

  1. download_semantic3d.bat
@echo off

set BASE_DIR=..\media\tibo\Maxtor\Data\Deepdata\points_cloud\semantic3d\original_data

:: Create directory if it doesn't exist
if not exist "%BASE_DIR%" mkdir "%BASE_DIR%"

:: Training data
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/training1/bildstein_station1_xyz_intensity_rgb.7z', '%BASE_DIR%\bildstein_station1_xyz_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/training1/bildstein_station3_xyz_intensity_rgb.7z', '%BASE_DIR%\bildstein_station3_xyz_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/training1/bildstein_station5_xyz_intensity_rgb.7z', '%BASE_DIR%\bildstein_station5_xyz_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/training1/domfountain_station1_xyz_intensity_rgb.7z', '%BASE_DIR%\domfountain_station1_xyz_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/training1/domfountain_station2_xyz_intensity_rgb.7z', '%BASE_DIR%\domfountain_station2_xyz_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/training1/domfountain_station3_xyz_intensity_rgb.7z', '%BASE_DIR%\domfountain_station3_xyz_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/training1/neugasse_station1_xyz_intensity_rgb.7z', '%BASE_DIR%\neugasse_station1_xyz_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/training1/sg27_station1_intensity_rgb.7z', '%BASE_DIR%\sg27_station1_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/training1/sg27_station2_intensity_rgb.7z', '%BASE_DIR%\sg27_station2_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/training1/sg27_station4_intensity_rgb.7z', '%BASE_DIR%\sg27_station4_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/training1/sg27_station5_intensity_rgb.7z', '%BASE_DIR%\sg27_station5_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/training1/sg27_station9_intensity_rgb.7z', '%BASE_DIR%\sg27_station9_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/training1/sg28_station4_intensity_rgb.7z', '%BASE_DIR%\sg28_station4_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/training1/untermaederbrunnen_station1_xyz_intensity_rgb.7z', '%BASE_DIR%\untermaederbrunnen_station1_xyz_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/training1/untermaederbrunnen_station3_xyz_intensity_rgb.7z', '%BASE_DIR%\untermaederbrunnen_station3_xyz_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/sem8_labels_training.7z', '%BASE_DIR%\sem8_labels_training.7z')"


:: Test data
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/testing1/birdfountain_station1_xyz_intensity_rgb.7z', '%BASE_DIR%\birdfountain_station1_xyz_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/testing1/castleblatten_station1_intensity_rgb.7z', '%BASE_DIR%\castleblatten_station1_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/testing1/castleblatten_station5_xyz_intensity_rgb.7z', '%BASE_DIR%\castleblatten_station5_xyz_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/testing1/marketplacefeldkirch_station1_intensity_rgb.7z', '%BASE_DIR%\marketplacefeldkirch_station1_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/testing1/marketplacefeldkirch_station4_intensity_rgb.7z', '%BASE_DIR%\marketplacefeldkirch_station4_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/testing1/marketplacefeldkirch_station7_intensity_rgb.7z', '%BASE_DIR%\marketplacefeldkirch_station7_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/testing1/sg27_station10_intensity_rgb.7z', '%BASE_DIR%\sg27_station10_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/testing1/sg27_station3_intensity_rgb.7z', '%BASE_DIR%\sg27_station3_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/testing1/sg27_station6_intensity_rgb.7z', '%BASE_DIR%\sg27_station6_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/testing1/sg27_station8_intensity_rgb.7z', '%BASE_DIR%\sg27_station8_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/testing1/sg28_station2_intensity_rgb.7z', '%BASE_DIR%\sg28_station5_xyz_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/testing1/sg28_station5_xyz_intensity_rgb.7z', '%BASE_DIR%\bildstein_station1_xyz_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/testing1/stgallencathedral_station1_intensity_rgb.7z', '%BASE_DIR%\stgallencathedral_station1_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/testing1/stgallencathedral_station3_intensity_rgb.7z', '%BASE_DIR%\stgallencathedral_station3_intensity_rgb.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/testing1/stgallencathedral_station6_intensity_rgb.7z', '%BASE_DIR%\stgallencathedral_station6_intensity_rgb.7z')"

:: reduced-8
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/testing2/MarketplaceFeldkirch_Station4_rgb_intensity-reduced.txt.7z', '%BASE_DIR%\MarketplaceFeldkirch_Station4_rgb_intensity-reduced.txt.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/testing2/StGallenCathedral_station6_rgb_intensity-reduced.txt.7z', '%BASE_DIR%\MarketplaceFeldkirch_Station6_rgb_intensity-reduced.txt.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/testing2/sg27_station10_rgb_intensity-reduced.txt.7z', '%BASE_DIR%\sg27_station10_rgb_intensity-reduced.txt.7z')"
powershell -command "(New-Object System.Net.WebClient).DownloadFile('http://semantic3d.net/data/point-clouds/testing2/sg28_Station2_rgb_intensity-reduced.txt.7z', '%BASE_DIR%\sg28_station2_rgb_intensity-reduced.txt.7z')"

if not exist "%ProgramFiles%\7-Zip\7z.exe" (
  echo 7z not installed. Aborted.
  exit /b 1
)

set "BASE_DIR=<base_directory>"

for %%F in ("%BASE_DIR%\*") do (
  "%ProgramFiles%\7-Zip\7z.exe" x "%%F" -o"%%~dpF" -y
)

move "%BASE_DIR%\station1_xyz_intensity_rgb.txt" "%BASE_DIR%\neugasse_station1_xyz_intensity_rgb.txt"

:: Uncomment the following block if you want to remove .7z files
:: for %%F in ("%BASE_DIR%\*.7z") do (
::   del "%%F"
:: )

exit /b 0
  1. compile_wrappers.sh
rem Compile cpp subsampling
cd cpp_subsampling
python setup.py build_ext --inplace
cd ..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions