CodeFormer
CodeFormer copied to clipboard
About train stage2
`2023-07-11 07:07:43,224 INFO: Start training from epoch: 0, iter: 1
Traceback (most recent call last):
File "basicsr/train.py", line 225, in
Overload resolution failed:
- Can't parse 'params'. Sequence item with index 1 has a wrong type
- Can't parse 'params'. Sequence item with index 1 has a wrong type`
In https://github.com/sczhou/CodeFormer/blob/4724c90b6b9d5183da383f2bdae6ddf9b0bf045d/basicsr/data/ffhq_blind_dataset.py#L234C17-L234C83
jpeg_p = np.random.uniform(self.jpeg_range[0], self.jpeg_range[1])
change it to np.random.randint
This seems to have solved it for me. Thank you!
In https://github.com/sczhou/CodeFormer/blob/4724c90b6b9d5183da383f2bdae6ddf9b0bf045d/basicsr/data/ffhq_blind_dataset.py#L234C17-L234C83
jpeg_p = np.random.uniform(self.jpeg_range[0], self.jpeg_range[1])
change it tonp.random.randint
In https://github.com/sczhou/CodeFormer/blob/4724c90b6b9d5183da383f2bdae6ddf9b0bf045d/basicsr/data/ffhq_blind_dataset.py#L234C17-L234C83
jpeg_p = np.random.uniform(self.jpeg_range[0], self.jpeg_range[1])
change it tonp.random.randint
I tried your method, but still got the same error