sangyun884 / HR-VITON

Official PyTorch implementation for the paper High-Resolution Virtual Try-On with Misalignment and Occlusion-Handled Conditions (ECCV 2022).
825 stars 171 forks source link

TypeError - Missing Required Positional Argument in Custom PyTorch Model Training #82

Open Zhangzqing opened 9 months ago

Zhangzqing commented 9 months ago

I am attempting to train a condition generator model using the train_condition.py script from the HR-VITON project, but I am encountering the following error:

TypeError: forward() missing 1 required positional argument: 'input2'

The error occurs when executing the command:

python train_condition.py --cuda True --gpu_ids 0 --Ddownx2 --Ddropout --lasttvonly --interflowloss --occlusion

I have confirmed that the parameters input1 and input2 passed to the forward() method of the tocg model are correctly initialized and contain the correct data. I am using PyTorch version [Your PyTorch version] and Python version [Your Python version].

Does anyone have any suggestions on how to resolve this issue?

meetncl commented 9 months ago

I am also facing the same issue, did you solved it ??

Zhangzqing commented 9 months ago

It's not resolved yet, can I have your contact information? Which chat tool do you usually use? I would like to ask you some questions.

发自我的iPhone

------------------ Original ------------------ From: meetncl @.> Date: Wed,Nov 29,2023 7:10 PM To: sangyun884/HR-VITON @.> Cc: Zhangzqing @.>, Author @.> Subject: Re: [sangyun884/HR-VITON] TypeError - Missing Required PositionalArgument in Custom PyTorch Model Training (Issue #82)

meetncl commented 9 months ago

Hey you contact me on X: @MeetNagadia or Mail: meetn@coutloot.com

a-meal-is-not-enough commented 7 months ago

Have you solved this problem? my friends!

Manish989927 commented 4 months ago

https://colab.research.google.com/drive/1BG-4G6MYmwRZlqctbVVSMC-lj27Cycoh?usp=sharing

Manish989927 commented 4 months ago

this help you to understand the problems

Zhangzqing commented 4 months ago

thx!I’ll go check it out now.

发自我的iPhone

------------------ Original ------------------ From: Manish @.> Date: Fri,Apr 5,2024 8:24 PM To: sangyun884/HR-VITON @.> Cc: Zhangzqing @.>, Author @.> Subject: Re: [sangyun884/HR-VITON] TypeError - Missing Required PositionalArgument in Custom PyTorch Model Training (Issue #82)