Skip to content
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

自己数据集训练 #37

Open
wwzstudy opened this issue Jul 22, 2024 · 2 comments
Open

自己数据集训练 #37

wwzstudy opened this issue Jul 22, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@wwzstudy
Copy link

An error occurred while running trainslation.py
Uploading 1721626799107.png…

@wwzstudy
Copy link
Author

Epoch 1 / 500: 0%| | 0/201 [00:00<?, ?it/s]<class 'tuple'>
<class 'list'>
Traceback (most recent call last):
File "trainslation.py", line 145, in
train(args_dict)
File "/hy-tmp/uvcgan2/train/train.py", line 73, in train
metrics = training_epoch(
File "/hy-tmp/uvcgan2/train/train.py", line 25, in training_epoch
model.set_input(batch)
File "/hy-tmp/uvcgan2/cgan/model_base.py", line 45, in set_input
self._set_input(inputs, domain)
File "/hy-tmp/uvcgan2/cgan/uvcgan2.py", line 190, in _set_input
set_two_domain_input(self.images, inputs, domain, self.device)
File "/hy-tmp/uvcgan2/cgan/funcs.py", line 6, in set_two_domain_input
images.real_a = inputs[0].to(device, non_blocking = True)
AttributeError: 'list' object has no attribute 'to'

@usert5432 usert5432 self-assigned this Jul 22, 2024
@usert5432 usert5432 added the question Further information is requested label Jul 22, 2024
@usert5432
Copy link
Collaborator

Hi @wwzstudy,

Thank you for reporting this problem. The error you've encountered is rather unusual. To help us diagnose the issue more effectively, could you please confirm whether you're using a custom dataset for the training?

I suspect there may be some issue with a dataset returning a list of values (like [ image, labels ]), instead of just images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants