-
Notifications
You must be signed in to change notification settings - Fork 39
IndexError: index 4 is out of bounds for dimension 1 with size 3 #3
Comments
Hi, Is the index out of bound error happening on the tensor real_B_encoded? real_B_encoded should be of shape (batch_size, 18, 256, 256). 18 is the number of total labels defined by HumanParsing dataset, which is where our network is trained from (see README page for full list of labels). Let me know if the error comes from other tensors. |
Hi, |
Hi, Did you run the script |
Hi, After I commented on lines 155 and 156, and the following error occurred. Can you tell me the solution? |
Hi, What value did you set for the option --classname when you run update_demo.py? |
Hi, |
Hi, Have you tried directly running scripts/edit_and_visualize_demo.sh with your input image? |
Hi, |
Hi, Did you run the You may consider running the bash script in the correct directory, or manually following the |
Hi, |
Hi, |
This output looks incorrect, which is likely due to wrong input image format, and/or unsuccessfully loading pre-trained model weights. Did you get the correct output as in the 3 demo examples? |
I have the same problem with this: Traceback (most recent call last): |
Hi, is it possible to share which python script you ran that gave you this error? From the error message, is seems to be from the train.py script, while we don't have a file with that name. |
|
Hi,
Thanks for this amazing library . Can you please help me with this?
when I run the /FashionPlus/separate_vae/encode_features.py file , the following error occurs.
Traceback (most recent call last):
File "...FashionPlus/separate_vae/encode_features.py", line 63, in
label_encodings, num_labels = model.encode_features(Variable(data['input']))
File ".../FashionPlus/separate_vae/models/separate_clothing_encoder_models.py", line 201, in encode_features
zs_encoded[:, count_i*self.opt.nz: (count_i+1)*self.opt.nz] = self.Separate_encoder(real_B_encoded[:,label_i].unsqueeze(1))
IndexError: index 4 is out of bounds for dimension 1 with size 3
Thanks.
The text was updated successfully, but these errors were encountered: