zkytony / cos-pomdp Goto Github PK
View Code? Open in Web Editor NEWCode for "Towards Optimal Correlational Object Search" | ICRA 2022
License: Apache License 2.0
Code for "Towards Optimal Correlational Object Search" | ICRA 2022
License: Apache License 2.0
____________________________________ 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
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?
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)
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
At this line - when all the correlation are being loaded, some of them all have 0 probabilities :
cos-pomdp/cospomdp/models/correlation.py
Line 83 in 1e3c7fe
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.