Code Monkey home page Code Monkey logo

Comments (6)

markcutajar avatar markcutajar commented on August 15, 2024 1

I think the package was designed for linux which allows automatic creation of folders vhzihaaocq for example. However, Windows doesn't allow that to get it to work, changes need to be done to pre-create the folder than use the log.

Checking it out, in src/utils.py all the

subprocess.Popen("mkdir %s" % main_dump_path, shell=True).wait()

lines or similar needs to be changed to

os.makedirs(_path_name)

from arnold.

Throne-myworld avatar Throne-myworld commented on August 15, 2024

I think the package was designed for linux which allows automatic creation of folders vhzihaaocq for example. However, Windows doesn't allow that to get it to work, changes need to be done to pre-create the folder than use the log.

Checking it out, in src/utils.py all the

subprocess.Popen("mkdir %s" % main_dump_path, shell=True).wait()

lines or similar needs to be changed to

os.makedirs(_path_name)

good work, my friend!

from arnold.

Throne-myworld avatar Throne-myworld commented on August 15, 2024

@markcutajar ,but a new issue comes,:
File "D:\PyCharmproject\Arnold-master\Arnold-master\src\doom\game.py", line 133, in init
assert os.path.isfile(self.scenario_path)
AssertionError
when I try to print the self.scenario_path, it says:D:\PyCharmproject\Arnold-master\Arnold-master\resources\scenarios\ .wad, there is no filename before'.wad', it really confused me.
Also, the inti_py in the model folder is empty, so how should I do to run the code?
using arnold.py or init_py?

from arnold.

markcutajar avatar markcutajar commented on August 15, 2024

I don't think that error is related, to run the script make sure you run it as explained in the readme:

python arnold.py --scenario defend_the_center --action_combinations "turn_lr+attack" --frame_skip 2

I think the issue is that if you just run python.arnold.py the scenario is not given and it is not captured earlier in the processes. Better error handling is definitely needed here.

from arnold.

Throne-myworld avatar Throne-myworld commented on August 15, 2024

Better error handling is definitely needed here.

OK , I will try it as soon as possible.

from arnold.

Throne-myworld avatar Throne-myworld commented on August 15, 2024

@markcutajar I tried it , the new issue says
File "D:\PyCharmproject\Arnold-master\Arnold-master\src\model\dqn\base.py", line 81, in base_forward
output = torch.cat([conv_output] + embeddings, dim=1)
RuntimeError: torch.cat(): Tensors must have same number of dimensions: got 2 and 3

from arnold.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.