Open c1ircle opened 2 months ago
Hi, I'm sorry, but I don't have any experience with vscode debugger. Perhaps you can try adding breakpoint()
call to train.py to start PDB? Would that resolve the issue or do you insist on using vscode debugger?
Thank you! I'd like to try it again. By the way, when using "nerfbaselines train-method wild-gaussians -- data external: / / phototourism trevi fountain", where does the train function start, and why? I not familiar with the use of nerfbaselines.
When training wild gaussians, you can either use the training script in this repo or use NerfBaselines to do the training. NerfBaselines is easier to use (it creates the environment and everything for you), but the train.py script in this repo is easier to understand. Please take a look at the Trainer
class in the NerfBaselines repo if you want to learn how the training is done with NerfBaselines: https://github.com/nerfbaselines/nerfbaselines/blob/076a443979c8612f7de0c2acf5eaaeafcd31952d/nerfbaselines/training.py#L538
What is the command line if I want to use the train file from the repo?
The command is python -m wildgaussians.train --dataset-type ... --data ...
. Try typing python -m wildgaussians.train --help
which will show you the available options.
Thank you. There's a little bit of confusion. The paper says, "However, when we want to fit the appearance of a previously unseen image, we need to perform test-time optimization of the unseen image's embedding. "Since this image is not in the dataset, how do we train its appenarance embedding?Is there no appearance_embedding and gt_image when I want to look at a new view of the image? How would you render this?
The command is
python -m wildgaussians.train --dataset-type ... --data ...
. Try typingpython -m wildgaussians.train --help
which will show you the available options.
Thanks for the great work. I run the train file followed your provided command. However, I wonder what is the command line if I want to test the trained model (reused the checkpoint).
You can use the nerfbaselines for rendering and evaluation: nerfbaselines render --checkpoint <path>
and nerfbaselines evaluate <path to predictions>
.
Could you tell me if I use "nerfbaselines train - method wild - gaussians -- data external: / / phototourism trevi fountain" - this instruction training, should be how to debug. My launch.json file looks like below, but when I break points in wildgaussians/train.py file, nothing happens. { "version": "0.2.0", "configurations": [ { "name": "Python 调试程序: 当前文件", "type": "debugpy", "request": "launch", // "program": "${file}", "console": "integratedTerminal", "module": "nerfbaselines", "justMyCode": false, "args": [ // debug train bias sep // "viewer", // "--checkpoint=https://huggingface.co/jkulhanek/wild-gaussians/resolve/main/phototourism/trevi-fountain.zip/checkpoint", // "--data=external:'//phototourism/trevi-fountain'"
}