Compositor icon indicating copy to clipboard operation
Compositor copied to clipboard

Various Errors Trying to run train_net.py after clean install and dataset setup.

Open jarek-tr opened this issue 1 year ago • 0 comments

Followed the install and dataset instruction set without issues. However, when trying to run Compositor and its variants train_net.py crashes before or during training iteration 0. Examples provided below:

python train_net.py --num-gpus 4 --config-file configs/partimagenet/semantic-segmentation/swin/compositor_swin_tiny_bs16_90k.yaml

-- Process 1 terminated with the following error:
FileNotFoundError: [Errno 2] No such file or directory: 'configs/partimagenet/semantic-segmentation/compositor_R50_bs16_90k.yaml'



python train_net.py --num-gpus 4 --config-file configs/partimagenet/semantic-segmentation/compositor_R50_bs128_40k.yaml

-- Process 3 terminated with the following error:
  File "/projects/jare1686/software/anaconda/envs/compositor/lib/python3.9/site-packages/torch/_tensor.py", line 972, in __array__
    return self.numpy().astype(dtype, copy=False)
TypeError



python train_net.py --num-gpus 4 --config-file configs/partimagenet/semantic-segmentation/Base-PartImageNet-SemanticSegmentation.yaml

-- Process 2 terminated with the following error:
    raise ValueError("Cannot match one checkpoint key to multiple keys in the model.")
ValueError: Cannot match one checkpoint key to multiple keys in the model.

Any help is greatly appreciated.

jarek-tr avatar Aug 13 '24 21:08 jarek-tr