Skip to content

Degradation file not found error on collab #2

@Mide6x

Description

@Mide6x

FileNotFoundError Traceback (most recent call last)
in <cell line: 0>()
3 file_path = "/usr/local/lib/python3.10/dist-packages/basicsr/data/degradations.py"
4
----> 5 for line in fileinput.input(file_path, inplace=True):
6 print(line.replace(
7 "from torchvision.transforms.functional_tensor import rgb_to_grayscale",

1 frames
/usr/lib/python3.11/fileinput.py in _readline(self)
335 pass
336 # The next few lines may raise OSError
--> 337 os.rename(self._filename, self._backupfilename)
338 self._file = open(self._backupfilename, self._mode,
339 encoding=encoding, errors=self._errors)

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.10/dist-packages/basicsr/data/degradations.py' -> '/usr/local/lib/python3.10/dist-packages/basicsr/data/degradations.py.bak'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions