-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[request] Complete json settings file #683
Comments
This might be interesting for you: http://filmicworlds.com/blog/command-line-photogrammetry-with-alicevision/ (run Alicevision Meshroom from .bat files) |
This is more of an alternative solution to my problem. |
Yes, we should provide an exemple of setting.json in the manual. |
Hi @nicofirst1 , it is actually quite simple but, obviously, it is not documented at all. "graph": {
# the node Feature extraction: by default nodes have the same name as their type with a _N prefix to numerate them (in case u have multiple nodes of the same type in ur pipeline
"FeatureExtraction_1": {
# its input parameters contain both the entries (the connections to other nodes) and the actual parameters for the algorithm
"inputs": {
# these are input parameters with the relevant values
"verboseLevel": "info",
"describerPreset": "high",
"describerTypes": [
"sift"
],
"forceCpuExtraction": false,
# this is a input connection, in this case it takes as input the output param{CameraInit_1.output} of the CameraInit node
"input": "{CameraInit_1.output}"
},
"nodeType": "FeatureExtraction",
"uids": {
"0": "6f5afb5e15ae6c53668bb213677f0d1be9e07fa5"
},
"parallelization": {
"blockSize": 40,
"split": 1,
"size": 15
},
# these are output connections, same principle as the input connections
"outputs": {
"output": "{cache}/{nodeType}/{uid0}/"
},
"position": [
0,
0
],
"internalFolder": "{cache}/{nodeType}/{uid0}/"
},
....
# etc To override the parameters you need to create a {
# for the node FeatureExtraction i changed 3 parameters.
# You just use a flat structure, i.e. no need to use input and output as declared in the mg file
"FeatureExtraction_1": {
"describerPreset": "high",
"forceCpuExtraction": "0",
"describerTypes": [
"sift"
]
},
"FeatureMatching_1": {
"guidedMatching": "0",
"describerTypes": [
"sift"
]
},
"StructureFromMotion_1": {
"useLocalBA": "0",
"lockAllIntrinsics": "0"
},
"PrepareDenseScene_1": {
"outputFileType": "png"
},
"Meshing_1": {
"maxInputPoints": "50000000",
"pixSizeMarginFinalCoef": "50"
},
# here for example i changed some input connection to publish more data in the Publish node
"Publish_1": {
"output": "testSfM20180524env",
"inputFiles": [
"{Texturing_1.outputMesh}",
"{Texturing_1.outputMaterial}",
"{Texturing_1.outputTextures}",
"{StructureFromMotion_1.outputViewsAndPoses}",
"{PrepareDenseScene_1.outputUndistorted}"
]
}
}
So as you see, as long as you have some code/lib to write a json file it is quite simple to do programmatically. |
I wrote a semi-complete settings.json with default values. Hope this helps
|
Are there any update on this? |
Are there any updates on this issue? |
There does not to be a '.mg' file in this or the main AliceVision repository. Where is it located or are there any new updates on this issue? |
@KonstantinRr You can save the default graph from the GUI |
Using the GUI default graph yields error for every key in the setting dictionary. |
This might be useful:
|
I am looking for an updated .json example of the setting file, trying to override using the data from the .mg file but I think somethink is wrong with my json structure. |
Is your feature request related to a problem? Please describe.
I would like to run the meshroom pipeline from command line using a custom setting in json format. The problem is that I have no clue on how the settings.json should be constructed.
Describe the solution you'd like
A default setting.json would be ideal to understand the structure or just to have a general overview of the parameters.
The text was updated successfully, but these errors were encountered: