DifFace
DifFace copied to clipboard
Environment doesn't work in colab notebook
Hello.
When running colab notebook
!conda env update -n base -f /content/DifFace/environment.yaml
doesn't work properly, gives
Channels:
- defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: failed
SpecsConfigurationConflictError: Requested specs conflict with configured specs.
requested specs:
- _libgcc_mutex==0.1=main
- _openmp_mutex==5.1=1_gnu
- ca-certificates==2022.10.11=h06a4308_0
- certifi==2022.9.24=py38h06a4308_0
- cudatoolkit==11.3.1=h2bc3f7f_2
- cudnn==8.2.1=cuda11.3_0
- ld_impl_linux-64==2.38=h1181459_1
- libffi==3.4.2=h6a678d5_6
- libgcc-ng==11.2.0=h1234567_1
- libgomp==11.2.0=h1234567_1
- libstdcxx-ng==11.2.0=h1234567_1
- ncurses==6.3=h5eee18b_3
- openssl==1.1.1s=h7f8727e_0
- pip==22.2.2=py38h06a4308_0
- python==3.8.15=h7a1cb2a_2
- readline==8.2=h5eee18b_0
- setuptools==65.5.0=py38h06a4308_0
- sqlite==3.40.0=h5082296_0
- tk==8.6.12=h1ccaba5_0
- wheel==0.37.1=pyhd3eb1b0_0
- xz==5.2.6=h5eee18b_0
- zlib==1.2.13=h5eee18b_0
pinned specs:
- cuda-version=12
- python=3.10
- python_abi=3.10[build=*cp310*]
Use 'conda config --show-sources' to look for 'pinned_specs' and 'track_features'
configuration parameters. Pinned specs may also be defined in the file
/usr/local/conda-meta/pinned.
The environemnt has beed updated...
Later the error is raised turing imread
/bin/bash: /usr/local/lib/libtinfo.so.6: no version information available (required by /bin/bash)
Traceback (most recent call last):
File "/content/DifFace/inference_difface.py", line 6, in <module>
import torch
ModuleNotFoundError: No module named 'torch'
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
[<ipython-input-7-c4335fd8f319>](https://localhost:8080/#) in <cell line: 17>()
18 im1 = imread(str(im_path_in))
19 im_path_out = out_dir / im_path_in.name
---> 20 im2 = imread(str(im_path_out))
21 display(im1, im2)
[<ipython-input-6-1bb6104bd414>](https://localhost:8080/#) in imread(img_path)
14 def imread(img_path):
15 img = cv2.imread(img_path)
---> 16 if img.ndim > 3:
17 img = img[:, :, :3]
18 img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
AttributeError: 'NoneType' object has no attribute 'ndim'