Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

[BUG] #96

Closed
Nick-AI-Generator opened this issue Dec 10, 2019 · 6 comments
Closed

[BUG] #96

Nick-AI-Generator opened this issue Dec 10, 2019 · 6 comments
Labels
bug Something isn't working

Comments

@Nick-AI-Generator
Copy link

When ever i try to run it it show me this message
(copied from the AI Dungeon)

Traceback (most recent call last):
File "play.py", line 271, in
play_aidungeon_2()
File "play.py", line 106, in play_aidungeon_2
generator = GPT2Generator()
File "/content/AIDungeon/generator/gpt2/gpt2_generator.py", line 31, in init
self.enc = encoder.get_encoder(self.model_name, models_dir)
File "/content/AIDungeon/generator/gpt2/src/encoder.py", line 124, in get_encoder
with open(os.path.join(models_dir, model_name, "encoder.json"), "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'generator/gpt2/models/model_v5/encoder.json'

and then it dosn't run if I'm doing something wrong please contact me at Kngihtemerald6@gmail.com

please i love this game and i need i back up and running soon
Thank you for your time

P.S it worked earlier today

@Nick-AI-Generator Nick-AI-Generator added the bug Something isn't working label Dec 10, 2019
@spencerhakim
Copy link

spencerhakim commented Dec 10, 2019

Pretty sure this URL needs to be updated. https://github.com/AIDungeon/AIDungeon/blob/master/install.sh#L8

Edit: output from the first step if I remove the call to clear_output

Cloning into 'AIDungeon'...
remote: Enumerating objects: 51, done.
remote: Counting objects: 100% (51/51), done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 51 (delta 2), reused 19 (delta 0), pack-reused 0
Unpacking objects: 100% (51/51), done.
/content/AIDungeon/AIDungeon/AIDungeon/AIDungeon/AIDungeon
Installing dependencies
Downloading AIDungeon2 Model... (this may take a very, very long time)
--2019-12-10 20:02:29--  https://github.com/nickwalton/AIDungeon/files/3935881/model_v5.torrent.zip
Resolving github.com (github.com)... 140.82.118.4
Connecting to github.com (github.com)|140.82.118.4|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-12-10 20:02:29 ERROR 404: Not Found.

unzip:  cannot find or open model_v5.torrent.zip, model_v5.torrent.zip.zip or model_v5.torrent.zip.ZIP.


===========================================
We are now starting to download the model.
It will take a while to get up to speed.
DHT errors are normal.
===========================================

Exception caught
Exception: [download_helper.cc:451] errorCode=1 Unrecognized URI or unsupported protocol: model_v5.torrent

Download Complete!
Download Complete!

Edit 2: Adding the line !sed -i.orig s/nickwalton/AIDungeon/ install.sh above !./install.sh fixes the issue for now

@snglth
Copy link

snglth commented Dec 10, 2019

Why not just to embed a magnet link into install.sh? I tried to do so in my fork (https://github.com/snglth/AIDungeon/blob/master/install.sh) and it works pretty well.

@Nick-AI-Generator
Copy link
Author

Nick-AI-Generator commented Dec 11, 2019 via email

@Akmp40
Copy link

Akmp40 commented Dec 11, 2019

@Nick-AI-Generator You can copy and paste the line of code seen above in @spencerhakim comment before running AiDungeon.
image

@Nick-AI-Generator
Copy link
Author

Nick-AI-Generator commented Dec 11, 2019 via email

@louisgv
Copy link
Contributor

louisgv commented Dec 13, 2019

Should be closed with #93

@ben-bay ben-bay closed this as completed Dec 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants