mario-gpt icon indicating copy to clipboard operation
mario-gpt copied to clipboard

Doesn't works

Open zwobot1980 opened this issue 2 years ago • 1 comments

Hi, i did try to use your exemple but it doesnt works. See the message on the screenshot. Mario-GPT

you example script

from mario_gpt.lm import MarioLM from mario_gpt.utils import view_level, convert_level_to_png

pretrained_model = shyamsn97/Mario-GPT2-700-context-length

mario_lm = MarioLM()

prompts = ["many pipes, many enemies, many blocks, high elevation"]

generate level of size 700, pump temperature up to ~2.4 for more stochastic but playable levels

generated_level = mario_lm.sample( prompts=prompts, num_steps=700, temperature=2.0, use_tqdm=True )

show string list

view_level(generated_level, mario_lm.tokenizer) convert_level_to_png(generated_level, "generated_level.png", mario_lm.tokenizer)

zwobot1980 avatar Feb 17 '23 15:02 zwobot1980

Hey! In the works to update the pypi package. Right now you can either use num_steps = ((anything divisible by 14) - 1) or you can install the package from source

shyamsn97 avatar Feb 17 '23 16:02 shyamsn97

Should be working now, feel free to open another issue if theres additional errors!

shyamsn97 avatar Feb 18 '23 08:02 shyamsn97

Thank you for your help. I will try it :-)

Am 18.02.2023 um 09:33 schrieb Shyam Sudhakaran @.***>:

Closed #8 https://github.com/shyamsn97/mario-gpt/issues/8 as completed.

— Reply to this email directly, view it on GitHub https://github.com/shyamsn97/mario-gpt/issues/8#event-8552613092, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXCD35VOZWTDYQ4NQA4JWFLWYCCNBANCNFSM6AAAAAAU7Q6KXY. You are receiving this because you authored the thread.

zwobot1980 avatar Feb 18 '23 10:02 zwobot1980