alphageometry icon indicating copy to clipboard operation
alphageometry copied to clipboard

Download fails with "file/folder name cannot be extracted from: ag_ckpt_vocab"

Open nvladimirovi opened this issue 1 year ago • 2 comments

Under WSL (Windows Subsystem for Linux) I get the error below.

Error

bash download.sh 
Retrieving folder list
Failed to retrieve folder contents:

        file/folder name cannot be extracted from: ag_ckpt_vocab – Google Disk

Solution

Manually navigate to Google Drive location of the weights and other files (link: https://drive.google.com/drive/u/0/folders/1ZLaZ2ajtOcILDWa5ePPLX1bmaf_BNRZV)

Copy that link and set it in download.sh file instead of using the https://bit.ly/alphageometry

gdown --folder https://drive.google.com/drive/u/0/folders/1ZLaZ2ajtOcILDWa5ePPLX1bmaf_BNRZV
export DATA=ag_ckpt_vocab

nvladimirovi avatar Jan 22 '24 18:01 nvladimirovi

I have the same problem - the proposed workaround worked. I am running windows 11 / WSL2.

AartBluestoke avatar Jan 25 '24 05:01 AartBluestoke

I've Created a hugging face repo with the weights and Voccab for alphageometry , here's the link : https://huggingface.co/abrahamabelboodala/ALPHAGEOMETRY_ag_ckpt_vocab/tree/main/ag_ckpt_vocab

Install from hugging face repo

Common Error

When running the download.sh script, you may encounter the following error:

bash download.sh
# Error Output:
DATA=ag_ckpt_vocab
Retrieving folder list
Failed to retrieve folder contents:
file/folder name cannot be extracted from: ag_ckpt_vocab – Google Drive

Resolution Steps

  1. Create a Folder:

    • At the root of your alphageometry folder, create a new folder named ag_ckpt_vocab. Example: alphageometry/ag_ckpt_vocab
  2. Download Required Files:

    • from this link https://huggingface.co/abrahamabelboodala/ALPHAGEOMETRY_ag_ckpt_vocab/tree/main/ag_ckpt_vocab
    • Download and place the following three files inside your ag_ckpt_vocab folder:
      1. geometry.757.vocab
      2. geometry.757.model
      3. checkpoint_10999999
  3. Set Environment Variable:

    • Open a bash shell at the root of your alphageometry folder.

    • Execute the following command:

      export DATA=ag_ckpt_vocab
      

Alternative to Step 3

Alternatively, you can automate the environment variable setup:

  1. Create a file named extrasetup.sh in the root of your alphageometry folder.

  2. Add the following line to extrasetup.sh:

    export DATA=ag_ckpt_vocab
    
  3. In a bash shell at the root of your alphageometry folder, execute:

    bash extrasetup.sh
    

abrahamabel avatar Jan 27 '24 02:01 abrahamabel