-
Notifications
You must be signed in to change notification settings - Fork 130
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
the question about output shape #48
Comments
How exactly are you running? What are the command-line arguments? |
my command-line arguments are like this: And I successfully run the camvid dataset(Including train , test and cityscapes's training). |
The annotations of the Cityscapes test dataset are not public and since you have |
thanks for your prompt reply, but I got a new problem like this: Traceback (most recent call last): I try to change the code "loss = self.criterion(outputs, labels)" (File "D:\Projects\PyTorch-ENet-master\test.py", line 49, in run_epoch) like this "loss = self.criterion(outputs, labels, torch.squeeze(target).long())", there is still the same error. |
@lucky26418 , sorry for the late reply. Hope that in meantime you have resolved the issue since unfortunately, I could not reproduce your error using the command you posted before: Are you still trying to run with the command above? |
Hi, I got the same issue .Did you have solved about this issue.I hope I can get your help,thank you! |
@Stone-SL, please post here the command-line arguments that you are using and the error trace |
This is my command-line arguements: |
@Stone-SL, I'm unable to reproduce your error. If I run the command you posted on my machine the model is loaded and run on the test dataset. The output while and after evaluating should look like this:
|
I got a problem when i test the model with cityscapes's dataset like this. How can I solve it?
Traceback (most recent call last):
File "main.py", line 348, in
loaders, w_class, class_encoding = load_dataset(dataset)
File "main.py", line 124, in load_dataset
color_labels = utils.batch_transform(labels, label_to_rgb)
File "D:\Projects\ENetProjects\PyTorch-ENet-master\utils.py", line 21, in batch_transform
transf_slices = [transform(tensor) for tensor in torch.unbind(batch)]
File "D:\Projects\ENetProjects\PyTorch-ENet-master\utils.py", line 21, in
transf_slices = [transform(tensor) for tensor in torch.unbind(batch)]
File "D:\Applications\anaconda3\lib\site-packages\torchvision\transforms\transforms.py", line 61, in call
img = t(img)
File "D:\Projects\ENetProjects\PyTorch-ENet-master\transforms.py", line 92, in call
color_tensor[channel].masked_fill_(mask, color_value)
RuntimeError: output with shape [360, 480] doesn't match the broadcast shape [3, 360, 480]
The text was updated successfully, but these errors were encountered: