kuprel / min-dalle

min(DALL·E) is a fast, minimal port of DALL·E Mini to PyTorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setup.sh fails due to possible CRLF issue

Filadeus opened this issue · comments

Hi!
Was trying to run this project in Ubuntu 20.04.04 (in WSL 2 under Windows 11), and after executing sh setup.sh received the following:

efim@DESKTOP-PSEQ17Q:/mnt/f/Projects/min-dalle$ sh setup.sh
: not found:
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt\r'
: not found:
: not found:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   234  100   234    0     0    390      0 --:--:-- --:--:-- --:--:--   389
: No ng: Failed to create the file ./pretrained/vqgan/flax_model.msgpack
Warning: such file or directory
  0  290M    0 15944    0     0  19163      0  4:24:39 --:--:--  4:24:39 19163
curl: (23) Failed writing body (0 != 15944)
: not found:
setup.sh: 11: wandb: not found
setup.sh: 12: wandb: not found
setup.sh: 13: wandb: not found

It looks like there is an extra \r character after requirements.txt, maybe open setup.sh and delete whatever character is there, or manually run pip install -r requirements.txt

I solved the issue by manually switching end of line sequence for setup.sh from CRLF to LF. Cheers!