Colab
Jun 18, 2024
Colab pip installs in a default dir where modifications aren’t allowed.
copy the pip installed pkg to the local dir using:
!cp -r /usr/local/lib/python3.10/dist-packages/basicsr /content
then modify.
import will import from this local dir first so the modified funciton can be used. not sure what determines the order of import for a pkg.