yyang181 / NTIRE23-VIDEO-COLORIZATION

18 stars 7 forks source link

colab not working #5

Closed TechHalloman closed 11 months ago

TechHalloman commented 11 months ago

Colab demo for BiSTNet. not working stop pip installation.

yyang181 commented 11 months ago

Hi @TechHalloman, if you are encountering pip installation errors that state Torch 2.0.0 is incompatible, it is generally safe to ignore them if they do not affect the running of this project.

The errors are likely caused by torchdata and torchtext requiring torch version 2.0.1, which is the default version in Google Colab. However, this project specifically requires torch version other than 2.0.1 as discessed in #4. One option to resolve this issue is to uninstall torchdata and torchtext first using the following commands: !pip3 uninstall torch torchdata torchtext -y

After uninstalling, you can proceed to install the pytorch versions required for this project and the errors should be gone: !pip3 install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1

I updated the colab to address these errors, if there are further questions, please let me know.

TechHalloman commented 11 months ago

test

TechHalloman commented 11 months ago

test2

yyang181 commented 11 months ago

Hello @TechHalloman, please ensure that you have followed the instructions below to clone the repository and navigate to the correct directory:

  1. Execute the first command to clone the repository.
  2. Execute the second command to change to the appropriate directory.

On the left-hand side, you will find a folder icon which you can click to access the desired location. Once there, you should be able to locate the file "pip_requirements.txt" as depicted in the provided image. 2023-12-05_20-48

yyang181 commented 11 months ago

test2

You can just ignore these errors, the demo would work with these errors.

TechHalloman commented 11 months ago

3$ CUDA_VISIBLE_DEVICES=0 python test_NTIRE23_Track_1_FID.py Traceback (most recent call last): File "/home/sos/Documents/NTIRE23-VIDEO-COLORIZATION/BiSTNet-NTIRE2023/test_NTIRE23_Track_1_FID.py", line 18, in from models.ColorVidNet import SPyNet File "/home/sos/Documents/NTIRE23-VIDEO-COLORIZATION/BiSTNet-NTIRE2023/models/ColorVidNet.py", line 7, in from mmcv.runner import load_checkpoint ImportError: cannot import name 'load_checkpoint' from 'mmcv.runner' (unknown location)

yyang181 commented 11 months ago

3$ CUDA_VISIBLE_DEVICES=0 python test_NTIRE23_Track_1_FID.py Traceback (most recent call last): File "/home/sos/Documents/NTIRE23-VIDEO-COLORIZATION/BiSTNet-NTIRE2023/test_NTIRE23_Track_1_FID.py", line 18, in from models.ColorVidNet import SPyNet File "/home/sos/Documents/NTIRE23-VIDEO-COLORIZATION/BiSTNet-NTIRE2023/models/ColorVidNet.py", line 7, in from mmcv.runner import load_checkpoint ImportError: cannot import name 'load_checkpoint' from 'mmcv.runner' (unknown location)

Please check your mmcv version (1.x should work). You can see that in https://github.com/open-mmlab/mmcv/blob/1.x/mmcv/runner/__init__.py L.6, these is a function named load_checkpoint.

Note that mmcv 1.x supports pytorch 1.5-1.13, see https://github.com/open-mmlab/mmcv/tree/1.x .

A simple way to install mmcv 1.x is pip3 install -U openmim mim install mmcv-full

To check your mmcv version: pip list | grep mmcv

Correct output should be: mmcv-full 1.7.1

TechHalloman commented 11 months ago
    mim install mmcv-full==1.7.0

got it