leo@pop-os ~ [1]> python3 model.py…
- User
leo@pop-os ~ [1]> python3 model.py /home/leo/.local/lib/python3.10/site-packages/fastai/callback/core.py:71: UserWarning: You are shadowing an attribute (generator) that exists in the learner. Use
self.learn.generatorto avoid this warn(f"You are shadowing an attribute ({name}) that exists in the learner. Useself.learn.{name}to avoid this") /home/leo/.local/lib/python3.10/site-packages/fastai/callback/core.py:71: UserWarning: You are shadowing an attribute (critic) that exists in the learner. Useself.learn.criticto avoid this warn(f"You are shadowing an attribute ({name}) that exists in the learner. Useself.learn.{name}to avoid this") /home/leo/.local/lib/python3.10/site-packages/fastai/callback/core.py:71: UserWarning: You are shadowing an attribute (gen_mode) that exists in the learner. Useself.learn.gen_modeto avoid this warn(f"You are shadowing an attribute ({name}) that exists in the learner. Useself.learn.{name}to avoid this") epoch train_loss valid_loss gen_loss crit_loss time
/home/leo/.local/lib/python3.10/site-packages/fastprogress/fastprogress.py:73: UserWarning: Your generator is empty. warn("Your generator is empty.") Traceback (most recent call last):--------------------------------------------------------------------------------| 0.00% [0/1 00:00<?] File "/home/leo/model.py", line 51, in learn.fit(10, 1) # Train for 10 epochs File "/home/leo/.local/lib/python3.10/site-packages/fastai/learner.py", line 266, in fit self._with_events(self._do_fit, 'fit', CancelFitException, self._end_cleanup) File "/home/leo/.local/lib/python3.10/site-packages/fastai/learner.py", line 201, in with_events try: self(f'before{event_type}'); f() File "/home/leo/.local/lib/python3.10/site-packages/fastai/learner.py", line 255, in _do_fit self._with_events(self._do_epoch, 'epoch', CancelEpochException) File "/home/leo/.local/lib/python3.10/site-packages/fastai/learner.py", line 201, in with_events try: self(f'before{event_type}'); f() File "/home/leo/.local/lib/python3.10/site-packages/fastai/learner.py", line 250, in _do_epoch self._do_epoch_validate() File "/home/leo/.local/lib/python3.10/site-packages/fastai/learner.py", line 246, in _do_epoch_validate with torch.no_grad(): self._with_events(self.all_batches, 'validate', CancelValidException) File "/home/leo/.local/lib/python3.10/site-packages/fastai/learner.py", line 201, in with_events try: self(f'before{event_type}'); f() File "/home/leo/.local/lib/python3.10/site-packages/fastai/learner.py", line 207, in all_batches for o in enumerate(self.dl): self.one_batch(*o) File "/home/leo/.local/lib/python3.10/site-packages/fastai/learner.py", line 237, in one_batch self._with_events(self._do_one_batch, 'batch', CancelBatchException) File "/home/leo/.local/lib/python3.10/site-packages/fastai/learner.py", line 201, in with_events try: self(f'before{event_type}'); f() File "/home/leo/.local/lib/python3.10/site-packages/fastai/learner.py", line 221, in _do_one_batch self.loss_grad = self.loss_func(self.pred, *self.yb) File "/home/leo/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "/home/leo/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl return forward_call(*args, **kwargs) File "/home/leo/.local/lib/python3.10/site-packages/fastai/vision/gan.py", line 29, in forward return self.generator(*args) if self.gen_mode else self.critic(*args) File "/home/leo/.local/lib/python3.10/site-packages/fastai/vision/gan.py", line 144, in generator fake_pred = self.gan_model.critic(output) File "/home/leo/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "/home/leo/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl return forward_call(*args, **kwargs) File "/home/leo/.local/lib/python3.10/site-packages/torch/nn/modules/container.py", line 219, in forward input = module(input) File "/home/leo/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "/home/leo/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl return forward_call(*args, **kwargs) File "/home/leo/.local/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 948, in forward return F.conv_transpose2d( RuntimeError: Given transposed=1, weight of size [100, 128, 4, 4], expected input[8, 1, 13, 13] to have 100 channels, but got 1 channels instead - Assistant