Code Monkey home page Code Monkey logo

cos-pomdp's People

Contributors

zkytony avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cos-pomdp's Issues

some tests are failing

____________________________________ test_agent_creation _____________________________________
...
        policy_model = PolicyModel2D(robot_trans_model, reward_model)
>       agent = CosAgent(target,
                         init_robot_state,
                         search_region,
                         robot_trans_model,
                         policy_model,
                         corr_dists,
                         detectors,
                         reward_model)
E       TypeError: __init__() missing 2 required positional arguments: 'target_belief_initializer' and 'target_belief_updater'

test_basic_agent_creation.py:41: TypeError

and

_________________________________ test_fansensor3d_geometry __________________________________

fansensor_big = FanSensor((0, 10, 10, 4297.183463481174)), dim = (30, 30), show_plots = True

    def test_fansensor3d_geometry(fansensor_big, dim, show_plots):
        if show_plots:
            fig, ax = plt.subplots()

>       assert 0 < pitch_facing((0,0,0), (0,5,3)) < 90
E       assert 0 < 0.0
E        +  where 0.0 = pitch_facing((0, 0, 0), (0, 5, 3))

test_sensors.py:68: AssertionError

Robothor Scene

Hello! Thank you for wonderful work.

I have been trying to run this code in robothor scene, (e.g., FloorPlan-Val1-1) but the code tend to update the grid that is beyond the wall. Have you ever run this on robothor scene? If so, what should i change except for the scene name?

Screenshot from 2022-07-16 17-16-43
)

Thortils Error

Hello!

I am trying to run this code, but i think it has issue on access.

Cloning into 'thortils'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

I am not sure if this repository is public.. Would you mind checking this one?

Issues with newer version of AI2thor

I am trying to run the COS-pomdp in a newer version of AI2Thor and it seems to get stuck and never succeed in finding the object of interest.

Is there anything I need to do differently to get it working in a newer version of AI2Thor? (I updated thortils to require the higher version but that's the only change I have made until now)

image

It has found the alarm clock but it isn't calling the done action. I am trying this with AI2Thor 5.0.0 and AI2Thor 4.0.0

All probabilities are 0 when loading from a file

At this line - when all the correlation are being loaded, some of them all have 0 probabilities :

def load(loadpath):

You can test this by running the following function :

def load(loadpath):
    with open(loadpath, "rb") as f:
        data = pickle.load(f)
    dists = {}
    for starget in data['dists']:
        weights = data['dists'][starget]
        dist = TabularDistribution([data['corr_object'][0]],
                                    weights, normalize=True)
        dists[starget] = dist

    for dist in dists.values():
        if sum(dist.histogram.values()) == 0 :
            candidates = list(dist.histogram.keys())
            prob_dist = []
            for value in candidates:
                prob_dist.append(dist.histogram[value])
           print (random.choices(candidates, weights=prob_dist, k=1)[0],sum(prob_dist))

This is basically happening right after the corelation probabilities being loaded - so it looks like the stored data has the 0s

This can easily be reproduced by running the default scene itself

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.