splatter-image: Couldn't run the code
Here is what I run after train_network.py +dataset=[cars] I try to run only shapenet dataset, but failed, could you give me some advise? Thank you
/home/dubaiprince/miniconda3/envs/gaussian_splatting/bin/python /home/dubaiprince/Projects/splatter-image/train_network.py +dataset=[cars]
/home/dubaiprince/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: /home/dubaiprince/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/torchvision/image.so: undefined symbol: _ZN2at4_ops19empty_memory_format4callEN3c108ArrayRefIlEENS2_8optionalINS2_10ScalarTypeEEENS5_INS2_6LayoutEEENS5_INS2_6DeviceEEENS5_IbEENS5_INS2_12MemoryFormatEEE
warn(f"Failed to load image Python extension: {e}")
wandb: Currently logged in as: liyc. Use `wandb login --relogin` to force relogin
wandb: wandb version 0.16.1 is available! To upgrade, please run:
wandb: $ pip install wandb --upgrade
wandb: Tracking run with wandb version 0.15.10
wandb: Run data is saved locally in /home/dubaiprince/Projects/splatter-image/experiments_out/2024-01-09/12-30-03/wandb/run-20240109_123004-qnzcmbqp
wandb: Run `wandb offline` to turn off syncing.
wandb: Syncing run earthy-thunder-11
wandb: ⭐️ View project at https://wandb.ai/liyc/gs_pred
wandb: 🚀 View run at https://wandb.ai/liyc/gs_pred/runs/qnzcmbqp
Setting up [LPIPS] perceptual loss: trunk [vgg], v[0.1], spatial [off] [09/01 12:30:09]
/home/dubaiprince/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/torchvision/models/_utils.py:209: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and will be removed in 0.15, please use 'weights' instead.
f"The parameter '{pretrained_param}' is deprecated since 0.13 and will be removed in 0.15, "
/home/dubaiprince/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and will be removed in 0.15. The current behavior is equivalent to passing `weights=VGG16_Weights.IMAGENET1K_V1`. You can also use `weights=VGG16_Weights.DEFAULT` to get the most up-to-date weights.
warnings.warn(msg)
Loading model from: /home/dubaiprince/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/lpips/weights/v0.1/vgg.pth [09/01 12:30:10]
Error executing job with overrides: ['+dataset=[cars]']
Traceback (most recent call last):
File "/home/dubaiprince/Projects/splatter-image/train_network.py", line 131, in main
shuffle=True)
File "/home/dubaiprince/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 344, in __init__
sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type]
File "/home/dubaiprince/miniconda3/envs/gaussian_splatting/lib/python3.7/site-packages/torch/utils/data/sampler.py", line 108, in __init__
"value, but got num_samples={}".format(self.num_samples))
ValueError: num_samples should be a positive integer value, but got num_samples=0
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (1 by maintainers)
I think the issue is caused by a repeated line here
@yangeer maybe you can print what self.intrins finds? Make sure to download the srn_*.zip file. I also updated readme - hopefully it’ll help.