Skip to content

Commit

Permalink
Merge pull request #2549 from alicevision/dev/exportDistortion
Browse files Browse the repository at this point in the history
Use export distortion and new segmentation node in templates
  • Loading branch information
cbentejac committed Sep 26, 2024
2 parents 9088f0b + 4b56264 commit b0c6982
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 38 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,25 @@ env:
CI: True

jobs:
build:
build-linux:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.8.14]
env:
MESHROOM_NODES_PATH: '${{ github.workspace }}/../meshroomNodes/meshroom/nodes'

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Clone meshroomNodes
run: |
cd ..
git clone https://github.com/alicevision/meshroomNodes.git
cd ${{ github.workspace }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 2 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ environment:
install:
- "set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "pip install -r requirements.txt -r dev_requirements.txt --timeout 45"
- "cd .. && git clone https://github.com/alicevision/meshroomNodes && cd Meshroom"
- "set MESHROOM_NODES_PATH=%MESHROOM_NODES_PATH%;%cd%/../meshroomNodes/meshroom/nodes"

build: off

Expand Down
14 changes: 7 additions & 7 deletions meshroom/pipelines/cameraTracking.mg
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"FeatureMatching": "2.0",
"ImageMatching": "2.0",
"ImageMatchingMultiSfM": "1.0",
"ImageSegmentation": "1.2",
"ImageSegmentationPrompt": "0.1",
"KeyframeSelection": "5.0",
"MeshDecimate": "1.0",
"MeshFiltering": "3.0",
Expand Down Expand Up @@ -179,7 +179,7 @@
],
"inputs": {
"input": "{ApplyCalibration_1.output}",
"masksFolder": "{ImageSegmentation_1.output}",
"masksFolder": "{ImageSegmentationPrompt_1.output}",
"maskExtension": "exr"
},
"internalInputs": {
Expand Down Expand Up @@ -292,8 +292,8 @@
"color": "#80766f"
}
},
"ImageSegmentation_1": {
"nodeType": "ImageSegmentation",
"ImageSegmentationPrompt_1": {
"nodeType": "ImageSegmentationPrompt",
"position": [
0,
200
Expand All @@ -318,7 +318,7 @@
"{ApplyCalibration_1.output}"
],
"maskPaths": [
"{ImageSegmentation_1.output}"
"{ImageSegmentationPrompt_1.output}"
]
},
"internalInputs": {
Expand Down Expand Up @@ -380,7 +380,7 @@
"inputs": {
"input": "{SfMTriangulation_1.output}",
"masksFolders": [
"{ImageSegmentation_1.output}"
"{ImageSegmentationPrompt_1.output}"
],
"maskExtension": "exr"
},
Expand Down Expand Up @@ -413,7 +413,7 @@
"cameras": "{ConvertSfMFormat_1.output}",
"model": "{MeshDecimate_1.output}",
"undistortedImages": "{ExportAnimatedCamera_1.outputUndistorted}",
"masks": "{ImageSegmentation_1.output}"
"masks": "{ImageSegmentationPrompt_1.output}"
},
"internalInputs": {
"color": "#4c594c"
Expand Down
33 changes: 24 additions & 9 deletions meshroom/pipelines/cameraTrackingWithoutCalibration.mg
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"nodesVersions": {
"ApplyCalibration": "1.0",
"CameraInit": "11.0",
"ConvertDistortion": "1.0",
"ConvertSfMFormat": "2.0",
"DepthMap": "5.0",
"DepthMapFilter": "4.0",
Expand All @@ -15,7 +16,7 @@
"FeatureMatching": "2.0",
"ImageMatching": "2.0",
"ImageMatchingMultiSfM": "1.0",
"ImageSegmentation": "1.2",
"ImageSegmentationPrompt": "0.1",
"KeyframeSelection": "5.0",
"MeshDecimate": "1.0",
"MeshFiltering": "3.0",
Expand Down Expand Up @@ -54,6 +55,19 @@
"color": "#575963"
}
},
"ConvertDistortion_1": {
"nodeType": "ConvertDistortion",
"position": [
1600,
360
],
"inputs": {
"input": "{StructureFromMotion_1.output}"
},
"internalInputs": {
"color": "#80766f"
}
},
"ConvertSfMFormat_1": {
"nodeType": "ConvertSfMFormat",
"position": [
Expand Down Expand Up @@ -118,10 +132,11 @@
"nodeType": "ExportDistortion",
"position": [
1800,
200
360
],
"inputs": {
"input": "{ExportAnimatedCamera_1.input}"
"input": "{ConvertDistortion_1.output}",
"exportLensGridsUndistorted": false
},
"internalInputs": {
"color": "#80766f"
Expand All @@ -135,7 +150,7 @@
],
"inputs": {
"input": "{ApplyCalibration_1.output}",
"masksFolder": "{ImageSegmentation_1.output}",
"masksFolder": "{ImageSegmentationPrompt_1.output}",
"maskExtension": "exr"
},
"internalInputs": {
Expand Down Expand Up @@ -248,8 +263,8 @@
"color": "#80766f"
}
},
"ImageSegmentation_1": {
"nodeType": "ImageSegmentation",
"ImageSegmentationPrompt_1": {
"nodeType": "ImageSegmentationPrompt",
"position": [
0,
200
Expand All @@ -274,7 +289,7 @@
"{ApplyCalibration_1.output}"
],
"maskPaths": [
"{ImageSegmentation_1.output}"
"{ImageSegmentationPrompt_1.output}"
]
},
"internalInputs": {
Expand Down Expand Up @@ -336,7 +351,7 @@
"inputs": {
"input": "{SfMTriangulation_1.output}",
"masksFolders": [
"{ImageSegmentation_1.output}"
"{ImageSegmentationPrompt_1.output}"
],
"maskExtension": "exr"
},
Expand Down Expand Up @@ -369,7 +384,7 @@
"cameras": "{ConvertSfMFormat_1.output}",
"model": "{MeshDecimate_1.output}",
"undistortedImages": "{ExportAnimatedCamera_1.outputUndistorted}",
"masks": "{ImageSegmentation_1.output}"
"masks": "{ImageSegmentationPrompt_1.output}"
},
"internalInputs": {
"color": "#4c594c"
Expand Down
10 changes: 5 additions & 5 deletions meshroom/pipelines/nodalCameraTracking.mg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"FeatureExtraction": "1.3",
"FeatureMatching": "2.0",
"ImageMatching": "2.0",
"ImageSegmentation": "1.2",
"ImageSegmentationPrompt": "0.1",
"NodalSfM": "2.0",
"Publish": "1.3",
"RelativePoseEstimating": "2.0",
Expand Down Expand Up @@ -140,7 +140,7 @@
],
"inputs": {
"input": "{ApplyCalibration_1.output}",
"masksFolder": "{ImageSegmentation_1.output}"
"masksFolder": "{ImageSegmentationPrompt_1.output}"
},
"internalInputs": {
"color": "#80766f"
Expand Down Expand Up @@ -178,8 +178,8 @@
"color": "#80766f"
}
},
"ImageSegmentation_1": {
"nodeType": "ImageSegmentation",
"ImageSegmentationPrompt_1": {
"nodeType": "ImageSegmentationPrompt",
"position": [
0,
200
Expand Down Expand Up @@ -247,7 +247,7 @@
"cameras": "{ConvertSfMFormat_1.output}",
"model": "{NodalSfM_1.output}",
"undistortedImages": "{ExportAnimatedCamera_1.outputUndistorted}",
"masks": "{ImageSegmentation_1.output}",
"masks": "{ImageSegmentationPrompt_1.output}",
"pointCloudParams": {
"particleSize": 0.001,
"particleColor": "Red"
Expand Down
33 changes: 24 additions & 9 deletions meshroom/pipelines/nodalCameraTrackingWithoutCalibration.mg
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
"template": true,
"nodesVersions": {
"CameraInit": "11.0",
"ConvertDistortion": "1.0",
"ConvertSfMFormat": "2.0",
"ExportAnimatedCamera": "2.0",
"ExportDistortion": "1.0",
"FeatureExtraction": "1.3",
"FeatureMatching": "2.0",
"ImageMatching": "2.0",
"ImageSegmentation": "1.2",
"ImageSegmentationPrompt": "0.1",
"NodalSfM": "2.0",
"Publish": "1.3",
"RelativePoseEstimating": "2.0",
Expand All @@ -31,6 +32,19 @@
"color": "#80766f"
}
},
"ConvertDistortion_1": {
"nodeType": "ConvertDistortion",
"position": [
1600,
0
],
"inputs": {
"input": "{ExportAnimatedCamera_1.input}"
},
"internalInputs": {
"color": "#80766f"
}
},
"ConvertSfMFormat_1": {
"nodeType": "ConvertSfMFormat",
"position": [
Expand Down Expand Up @@ -64,11 +78,12 @@
"ExportDistortion_1": {
"nodeType": "ExportDistortion",
"position": [
1600,
1800,
0
],
"inputs": {
"input": "{ExportAnimatedCamera_1.input}"
"input": "{ConvertDistortion_1.output}",
"exportLensGridsUndistorted": false
},
"internalInputs": {
"color": "#80766f"
Expand All @@ -81,8 +96,8 @@
0
],
"inputs": {
"input": "{ImageSegmentation_1.input}",
"masksFolder": "{ImageSegmentation_1.output}"
"input": "{ImageSegmentationPrompt_1.input}",
"masksFolder": "{ImageSegmentationPrompt_1.output}"
},
"internalInputs": {
"color": "#80766f"
Expand Down Expand Up @@ -120,8 +135,8 @@
"color": "#80766f"
}
},
"ImageSegmentation_1": {
"nodeType": "ImageSegmentation",
"ImageSegmentationPrompt_1": {
"nodeType": "ImageSegmentationPrompt",
"position": [
0,
0
Expand Down Expand Up @@ -153,7 +168,7 @@
"Publish_1": {
"nodeType": "Publish",
"position": [
1800,
2000,
0
],
"inputs": {
Expand Down Expand Up @@ -189,7 +204,7 @@
"cameras": "{ConvertSfMFormat_1.output}",
"model": "{NodalSfM_1.output}",
"undistortedImages": "{ExportAnimatedCamera_1.outputUndistorted}",
"masks": "{ImageSegmentation_1.output}",
"masks": "{ImageSegmentationPrompt_1.output}",
"pointCloudParams": {
"particleSize": 0.001,
"particleColor": "Red"
Expand Down
12 changes: 6 additions & 6 deletions meshroom/pipelines/photogrammetryAndCameraTracking.mg
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"FeatureMatching": "2.0",
"ImageMatching": "2.0",
"ImageMatchingMultiSfM": "1.0",
"ImageSegmentation": "1.2",
"ImageSegmentationPrompt": "0.1",
"KeyframeSelection": "5.0",
"MeshDecimate": "1.0",
"MeshFiltering": "3.0",
Expand Down Expand Up @@ -190,7 +190,7 @@
],
"inputs": {
"input": "{ApplyCalibration_1.output}",
"masksFolder": "{ImageSegmentation_1.output}",
"masksFolder": "{ImageSegmentationPrompt_1.output}",
"maskExtension": "exr"
},
"internalInputs": {
Expand Down Expand Up @@ -383,8 +383,8 @@
"color": "#384a55"
}
},
"ImageSegmentation_1": {
"nodeType": "ImageSegmentation",
"ImageSegmentationPrompt_1": {
"nodeType": "ImageSegmentationPrompt",
"position": [
0,
200
Expand All @@ -409,7 +409,7 @@
"{ApplyCalibration_1.output}"
],
"maskPaths": [
"{ImageSegmentation_1.output}"
"{ImageSegmentationPrompt_1.output}"
]
},
"internalInputs": {
Expand Down Expand Up @@ -495,7 +495,7 @@
"cameras": "{ConvertSfMFormat_1.output}",
"model": "{MeshDecimate_1.output}",
"undistortedImages": "{ExportAnimatedCamera_1.outputUndistorted}",
"masks": "{ImageSegmentation_1.output}"
"masks": "{ImageSegmentationPrompt_1.output}"
},
"internalInputs": {
"color": "#4c594c"
Expand Down
2 changes: 1 addition & 1 deletion meshroom/submitters/simpleFarmConfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"BASE": ["mikrosRender"],
"BASE": ["mikrosRender", "!ld7"],
"CPU": {
"NONE": [],
"NORMAL": ["mikrosRender"],
Expand Down

0 comments on commit b0c6982

Please sign in to comment.