Trying to figure out the best parameters!

Hi,good morning. Anybody here to help? I am trying to successfully put 2 different objects(balls) into their matching basket. I have record almost 150 episodes but the results are not very good.Is it better to start with one ball and one basket and after 40-50 episodes,add the second ball -basket?Because for the arm 101 with one camera,i think is kind difficult task. Lastly, any tip about the romm lighting?Is a variety of lighting preferable?

Hmm… For now, I started by looking at the official LeRobot guides and a few closely related examples​:thinking::


My first answer to the two questions

1. Is it better to begin with one ball and one basket for 40–50 episodes, then add the second pair?

Yes, I think a one-pair baseline is sensible, especially for diagnosis. It reveals whether the arm can reach, grasp, carry and release before also choosing between two objects and two destinations. But 40–50 is a starting experiment, not a guarantee. The official LeRobot real-world tutorial starts with simple pick-and-place and roughly 50 or more demonstrations with varied object positions; it does not establish a threshold for two-ball matching.

Most importantly, I would keep your existing almost 150 recordings. They may already contain useful examples of the easy task and of the actual two-object task. It would be a shame to discard them before checking what they cover. Testing a simpler scene is different from permanently simplifying your goal: the final policy still needs to handle both balls and their matching baskets if that is the outcome you want.

“Then add the second pair” can mean expand training to a mixture of A, B and the full A+B scene, or fine-tune on B alone after A. The latter need not retain A, and isolated A/B success does not establish competence with both objects visible. For a two-placement episode, also consider the state after the first ball has been deposited. The exact curriculum depends on your policy and the content of the existing 150 episodes.

2. Should you vary the room lighting while recording?

My default would be consistent, fairly diffuse lighting first. Keep the camera rigidly positioned and the balls, gripper, and baskets clearly visible, with few harsh shadows or specular reflections. That follows the LeRobot camera guidance. If you change lighting, camera position, initial object layout, and task difficulty together, it becomes hard to tell which change helped or harmed the result.

Introduce controlled lighting variation later if the deployment really needs it. First test under a familiar lamp; then compare the same scene with one brighter/dimmer condition. If that alone causes failures, add a small number of matching demonstrations and retest both conditions. A fixed work station may reasonably use controlled light; a room with changing daylight needs broader coverage. You mentioned different balls, not necessarily colored ones. If color is the matching cue, strong hue changes may alter the very visual identity the policy needs.

One camera is not automatically inadequate. Check whether its images show the ball, gripper, baskets and remaining object after the first placement. A one-camera SO-101 ACT example reports two-color block sorting, which shows one workable design but does not prove your view is sufficient. Blocks on plates differ from balls in baskets. A concrete blind spot justifies changing angle or adding a camera; a clear view points attention to other branches.

A practical default path that preserves your work

  1. Inspect before recording more. Keep a copy of the ~150 episodes and watch perhaps three to five representative ones, including any complete two-ball sequence. The official LeRobot Dataset Tools guide provides a starting point for visualizing recorded video with the corresponding state and actions. Look for complete grasps/releases, camera occlusion, initial-position diversity, and the scene after the first ball is deposited. You do not need to manually audit every episode first.

  2. Try one repeatable, easy condition. With a familiar ball, basket, camera view and stable lighting, observe whether the existing trained policy starts moving, reaches, grasps, lifts, approaches the basket and releases. A short evaluation can locate the first breakdown without retraining. If even this fails, fix or study that simpler failure before making the scene more complex.

  3. Compare A alone, B alone, and A+B together if those are meaningful scene types for your intended task. If each works separately but the combined view fails, focus on object selection, occlusion, matching destinations, ordering and the intermediate one-ball-remaining scene. If B alone fails, inspect B’s graspability, visibility and coverage. If the first ball succeeds but the second never starts, inspect demonstrations of that exact transition.

  4. Change the smallest relevant thing. Add a handful of targeted, complete demonstrations when you see a specific missing case; or correct camera placement, a physical grasp problem, or a version-specific input mismatch if the evidence points there. Retain representative earlier data and verify that the previous successful behavior survives. More of the same recordings is not always the most informative remedy.

  5. Run controlled trials of the full task. Log initial object positions, pick order, target choice and the first failure stage. A small set of repeated trials is more diagnostic than a blended success percentage. Keep the workspace clear and a stop option accessible; do not change the policy, camera and lighting all at once.

Here is the shortest useful branching summary:

What you see Most informative next check
Even one familiar ball fails Separate failure to start, reach, grasp, carry and release; inspect matching demonstrations and physical execution.
A works, B alone fails Compare appearance, ball motion, position coverage, visibility, gripper contact and B’s target reach.
Both work alone, not together Look at simultaneous-scene coverage, which ball is selected, correct basket identity and the post-first-placement state.
The same setup works until lighting changes Hold the scene fixed and compare one controlled illumination difference.
The policy ignores different task instructions Check whether that particular model actually takes language or another goal signal as input.

I would especially want to know which policy and LeRobot version you are using, whether both balls appear together in the demonstrations, and the first visible stage where a rollout fails. A short clip is useful if convenient, but you can work through the comparisons without first answering a long questionnaire.

For setup-specific video feedback, the LeRobot Discord is an optional additional channel.

Diagnosing the first failing stage

Why an overall failure rate is not enough

“The results are not very good” could mean that the robot never begins moving, reaches inaccurately, fails to close its gripper around a ball, drops it during transport, chooses the wrong basket, or finishes one placement and stops. Those require different experiments. Instead of one pass/fail label, a short rollout note can record the sequence:

initiated | reached | grasped | carried | correct basket | released

For a two-placement task, score the first and second object separately. For example, “7/10 trials started, 5/7 of those grasped, 3/5 of those completed the placement” is more informative than an unexplained “30% success.” The latter may be accurate for full completion while hiding the specific bottleneck. Counts from five or ten trials are diagnostic observations, not precision estimates of long-term reliability. Include the denominator, scene and first failing stage whenever quoting a rate.

If a familiar single-object arrangement already fails

Begin with a start position and lighting condition represented by the demonstrations. If the policy never starts, establish whether it receives a live observation and produces commands before changing the object data. If it reaches but misses, examine the current image, contact geometry, target location and examples of that grasp. If it grips then drops, look at ball motion, closure timing and the carrying path. If it reaches the basket yet does not release, compare the terminal motions in successful recorded demonstrations with the autonomous rollout.

If A works but B fails even alone

Keep the setup fixed while changing only which ball you present. Are the balls equally visible and graspable? Does B begin farther from the arm, reflect more light, or sit nearer the edge of the field of view? Is basket B reachable with the same comfortable approach? Then compare left/right start placements without changing the mapping rule. A side-specific error suggests a different data/geometry question from an object-specific error that persists in every position.

If both work separately but fail together

This is a distinct scene, not merely two repetitions of the isolated test. The camera now contains a distractor object and possibly two plausible targets; the robot has to choose an object, move it to a destination, and decide what happens next. Check whether the policy selects a reasonable first object, whether it identifies that object’s basket, and whether the second ball remains visible during and after the first placement. If one ball or the gripper blocks the camera, that is a concrete reason to change framing. If the view is clear, examine the coverage of combined scenes and possible fixed-order shortcuts.

The after-first-placement state deserves special attention. At that moment the table, gripper pose, target visibility and number of remaining objects differ from the initial frame. In Kouch’s related SO-101 sorter, a particular orange/purple layout produced a stall after the first block was moved. The author collected ten demonstrations targeted at that condition, while also changing training duration. This suggests a testable type of missing scene, not an established explanation for your robot or proof that ten extra episodes solve the problem.

If the wrong basket is chosen

Separate visual matching, fixed placement order, and instruction-dependent selection. With a fixed rule, ball A belongs in basket A regardless of order or position. A model could instead learn that “left object always goes to right basket” if that is all the demonstrations show. A small test that swaps permitted object positions while keeping basket identities clear can distinguish a positional shortcut from an object-based mapping. If deployment will never vary the arrangement, that fixed shortcut might still be serviceable; decide based on the actual goal.

What the existing demonstrations and a staged curriculum should contain

What does “150 episodes” actually represent?

The episode count is meaningful, but it is not a controlled measure of task coverage. An episode could contain one pickup, both placements, a long pause, recovery after a slip, or a reset movement. A hundred short single-object trajectories are not equivalent to a hundred complete two-object sequences. Nor does the count tell us whether all episodes start from nearly identical positions or include the second-object state the model will eventually encounter.

Before collecting another fixed batch, I would make a small inventory, not a labor-intensive annotation project. A few representative recordings can answer:

Coverage question Useful categories
Objects in the starting view A only; B only; A and B
Intended behavior A to A basket; B to B basket; two placements in one episode
Order and intermediate state A first; B first; second pickup visible; only one pickup recorded
Starting and goal positions Familiar center; relevant left/right or edge cases; fixed or movable baskets
Data quality Completed release; bad contact; prolonged idle; recovery; wrong or ambiguous target
Observation Gripper/object/goal visible; occasional or persistent occlusion

Three compatible design paths

A. One-pair baseline as a measuring instrument. Use a clean existing subset, or gather a modest set if the originals do not contain any, and test the fundamental pick/place sequence at familiar positions. Its purpose is to isolate basic manipulation. Once it works, restore the complete two-pair goal. Failure even here directs attention to basic behavior and observation instead of the second-ball selection problem.

B. A staged curriculum ending in a mixed dataset. Begin with A, then include representative A, representative B, and full A+B scenes rather than automatically replacing A data with B data. In combined episodes, include the intended order(s), visible basket identities, successful second pickup, and final release. The right mixture depends on the policy and what existing recordings already represent, so “40 then 50 then 50” is not a general rule. Re-evaluate A as you introduce B to detect loss of earlier behavior.

C. Modular behavior. If the sequence is fixed, separate specialized grasp/place behaviors with a supervisor choosing the next step can be reasonable. The supervisor must then handle target selection, sequencing and failures. If your goal is one end-to-end visual matching policy, that is a valid alternative. Choose the division of responsibilities that fits the intended deployment, rather than permanently reducing the original goal.

Target missing states, not arbitrary counts

If A alone works but B is rarely demonstrated at a difficult reachable position, add a few successful examples of that situation. If the arm moves the first ball and then stalls, add complete demonstrations that include a successful transition through the remaining-ball scene, perhaps with both relevant start orders if the final task permits them. If it systematically chooses a wrong basket, prioritize unambiguous object-to-target examples over repeating the same grasp with no matching variation.

Demonstration consistency matters, but do not auto-delete every idle frame or recovery. A pause may be part of a deliberate safe motion, or a recovery may be useful if the robot will need to handle slips. Inspect the video together with action/state traces before deciding what to exclude. Avoid a data-cleaning process in which a numerical flag silently removes the very states needed to recover from mistakes.

Preserve first; edit second

The official dataset visualization and tools guide is a good read-only first step. Some LeRobot editing commands can modify an original dataset. In the documented main-version tools, modify_tasks edits in place even when a new destination is specified. Make an untouched copy before destructive editing, and check the command help for the installed LeRobot version rather than pasting a main-branch command blindly. Similarly, recording resume guidance explains version-dependent semantics such as an episode count representing additional recordings when resuming.

Reserve a few repeatable scene conditions for evaluation. Familiar starts check whether the policy reproduces demonstrated behavior; a few held-out positions or lighting conditions test generalization. Write down trial counts and failure stages without overstating small differences. More data is warranted when these comparisons expose a real coverage gap.

One camera, lighting, object appearance, and ball-handling physics

Is the single-camera view actually insufficient?

The simplest visibility test is to look at the same frames the policy receives at the beginning, while closing the gripper, while carrying the ball, and after the first release. Can you still identify the remaining ball and the intended basket? A clear wide overview can be adequate for target selection yet hide the contact point at grasp time. A close-up may reveal the grasp but lose a far basket. Those are different limitations. The LeRobot camera guide recommends fixed mounting, suitable framing and consistent illumination; it is more useful here than a blanket one-camera/two-camera rule.

If important information is consistently hidden, try a better fixed camera position, and consider a second view if necessary. A second camera changes observation features, data and inference configuration, and perhaps compute requirements. An old one-camera checkpoint does not automatically start using a newly attached second image. Conversely, if the single-view frames already show every relevant object and goal, additional hardware is unlikely to explain why the policy refuses to start or repeatedly chooses the wrong learned order.

Keep lighting stable until the baseline tells you something

For the first tests I would use a dependable lamp or evenly diffused daylight, minimize hard shadows and direct reflection, and avoid moving the camera. In a room with windows, “same lamp” may not mean the same image at different times of day. Auto exposure and white balance can also alter the object’s apparent brightness or color. Comparing recorded frames with the rollout image is a cheap way to find an obvious mismatch.

Once the policy performs the basic task under the familiar condition, vary one relevant factor: brightness, shadow direction, lamp color temperature or natural daylight. Keep object positions and camera view fixed for the comparison where practical. If it remains reliable, broad random changes may be unnecessary. If it fails only under one changed light, those failures justify adding a bounded, representative lighting condition to training and a corresponding test. If the base scene fails equally in both conditions, investigate that base failure first.

Does the matching rule rely on color?

The question says the balls are different, but not how. If they differ primarily by color, strong hue or saturation changes can alter the cue used to choose the matching basket while leaving the action label unchanged. Mild exposure or brightness variation is not the same as recoloring an object into another category. Before turning on a transform, ask: does the modified image still show the same correct object-to-basket assignment? If the distinction is shape, size or pattern instead, the useful invariances differ.

Camera identity, contact physics, and deployment

If a camera was unplugged or replaced, verify that the policy sees the intended device, orientation, crop, feature name and preprocessing at both recording and rollout time. The camera guide documents device-ID considerations. A successful single-pair rollout in the unchanged setup makes a catastrophic feature mismatch less likely; failure immediately after a camera change makes it more relevant.

Finally, soft blocks on flat plates and balls inside baskets are not mechanically identical. A ball may roll as the gripper approaches or slip while being carried; the basket may need a particular release height. The arm can choose the correct target and still miss the physical placement. In that case, targeted grasp/release examples or improving the physical setup are better leads than randomizing lighting or adding a policy input.

Policy, task labels, training configuration, and version-sensitive checks

First identify the model before prescribing parameters

The post does not name the policy, installed LeRobot version, training steps, dataset structure or rollout configuration. ACT, Diffusion Policy, SmolVLA and other models do not have interchangeable defaults or task-conditioning behavior. That is why I would not start by prescribing a learning rate, batch size, action-chunk length, number of cameras or image-transform flag. One controlled rollout and a few inspected recordings have a higher chance of separating the plausible problems.

A fixed visual mapping is not necessarily a language task. In the current LeRobot ACT model implementation, image/robot-state observations are used in the action-prediction path; a natural-language task label stored in the dataset is not automatically passed as an instruction. The ACT documentation provides the policy context. By contrast, LeRobot’s language and recipes guide describes conditional language-processing mechanisms for applicable policies. These documents are for the current main branch and do not establish what the poster’s unspecified installation runs.

It helps to distinguish three goals: (1) both balls have fixed visually identifiable matching baskets; (2) the robot always handles A before B in a fixed sequence; (3) a changing instruction selects the object/order/goal. The first can be approached through image-based behavior learning if the mapping is visually observable. The third needs the changing goal signal to reach the policy; two otherwise identical observations requiring different actions with no observed condition are ambiguous training data. The IptiharPolat SO-101 ACT/SmolVLA study is helpful here because its fixed-order and language-switched tasks have different semantics, not because it establishes two-ball color-matching success.

What would make a configuration or software bug worth checking?

If even the familiar one-pair task fails unexpectedly, especially after changing hardware or code, compare training and inference inputs: physical camera identity, feature keys, image order/crop, state/action dimensions, normalization statistics, robot joint/gripper mapping and inference frequency. A mismatch can produce poor motion despite apparently ordinary training losses. Exact checks depend on the model and installed revision. If the arm executes the simple task correctly but chooses wrong baskets only in a crowded scene, combined-scene data and target semantics move higher on the list.

Low training or validation loss is not proof of a successful physical rollout. The deployed arm can encounter states slightly outside the demonstrations after an early small error. Observe task completion and failure stage alongside offline metrics. When comparing training steps or augmentation, keep the dataset, physical evaluation positions and model family fixed as far as practical; change one key factor per experiment. Kouch’s additional demos and longer training happened together, so the report cannot isolate a demonstration-only effect.

Version-dependent issue reports are conditional references

LeRobot has version-dependent issues concerning recordings, timing and dataset indexing, but none is established by this post. Older retake/video issue #4109 was reported fixed and closed in 2026; action-queue issue #1116 was completed in 2025. Issue #4976 reproduces incorrect frames/actions after deliberately inconsistent v3 episode offsets or bounds; this does not establish corruption in your dataset; #4519 only matters for matching task-index symptoms and versions.

If video and action traces are visibly out of alignment, then capture the exact episode, fps, LeRobot revision and data schema and investigate the relevant issue. If the observed failure is simply placing a grasped ball into the wrong basket, these timing/metadata reports are not the first explanation. Fix-status and version conditions matter when quoting issues to future readers.

Nearby real-robot examples, numbers, and what they do not prove

One front camera and two different objects: Kouch’s SO-101 sorter

The Kouch SO-101 sorting write-up is probably the closest public example I found: an ACT policy, one front camera, and orange/purple soft blocks placed on their respective plates. The author recorded 50 demonstrations, then saw a specific rollout failure: with orange initially on the left and purple on the right, the robot completed the orange placement but shook or stalled with only purple remaining. The author recorded 10 additional demonstrations targeted at that arrangement and sequence and reported roughly 80% success after retraining.

The lesson is target the missing scene, not “add exactly ten demonstrations.” The claimed ~80% is an author’s report without a controlled denominator comparable to a physical benchmark. Training also changed from approximately 20k to 40k steps, confounding the effect of the extra data. Soft blocks and plates also behave differently from rolling balls and baskets.

The linked ACT model card and dataset add useful configuration evidence, not independent success measurements. In small public files retrieved and checked for this comparison, the model used one front-camera image feature, with a final 60-episode dataset and 40k training steps. Its stored dataset.image_transforms.enable=false means the transforms listed elsewhere in that configuration were disabled. The dataset’s top-level task text describes a snack and white dish, which differs from the article’s block-sorting description; without inspecting the actual videos, that metadata difference does not establish that the footage is wrong. This illustrates why a task string, a model card and a blog post should be read as different kinds of evidence about the same project.

Three-color matching as a dataset design, not a trained-policy benchmark

The Cache-SCA SO-101 RGB block-to-matching-plate dataset is another nearby example. The actual public dataset metadata retrieved in a bounded comparison describes 100 collected episodes, red/green/blue blocks, a top and left-wrist camera, one composite sorting task, and additional skill/subtask annotation fields. Its README describes a successful autonomous forward/reset collection workflow. That is not equivalent to 100 successful held-out rollouts of a policy trained on the dataset.

Kouch’s publicly retrieved metadata has 46,487 frames in 60 episodes; Cache-SCA’s has 245,282 frames in 100 episodes. These represent very different amounts of recorded time and potentially different sequences per episode. They do not compare learned-policy success or prove the value of a second camera. This comparison is based on the public metadata I checked, not full-video inspection or trained-policy evaluation.

Useful partial analogues

  • IptiharPolat’s SO-101 ACT/SmolVLA project compares fixed two-object order with language-switched order using two cameras. Its placement slots are sequence positions, not matching-color baskets; a single-object ACT result was 16/20, while the two-object batch lacks annotated outcomes for a clean success rate. It clarifies task semantics, not the necessary camera count.
  • Project-IRA’s staged LEGO sorting dataset expands task variation and reports hundreds of episodes; the different policy/design does not imply your beginner task needs that count.
  • The fysical green-ball ACT model selects one target among distractors with two views, not two balls to two matching baskets; its card lacks controlled evaluation.
  • The clip-to-bowl ACT project reports reach/grasp/place separately; atomictan’s SO-101 project documents iterative data improvements on another task. Treat their self-reported rates as case-specific.

A physical benchmark illustrates why count alone is insufficient

In the October 2026 preprint From 12 to 200 Demonstrations, a physical SO-101 arm performed a single-ball pick-and-place task with distractors, evaluating ACT, Diffusion Policy, SmolVLA and Pi0.5 across different demonstration subsets. The study reports 1,340 scored physical rollouts and categorizes failure to start, reach, carry and deliver. In that specific design, ACT went from 1/40 completed trials with 12 demos to 37/40 with 100 demos. It also explains that a small ten-trial block is noisy, and fixed training steps mean changing demo count also changes how many times examples are seen. These are meaningful controlled within-study results, not a universal curve for two-ball matching or an instruction to choose 100 demos.

The companion analysis uses physical rollouts partly overlapping the first paper and is not a second independent benchmark. Offline losses can inform training but cannot replace measured robot initiation and successful completion; task identity, camera arrangement, evaluation denominators and training-step confounds govern transfer.

A compact future-reader reference path

For a future reader, the quickest references are the LeRobot real-world tutorial, camera guide, Dataset Tools and optional dataset-quality guidance. The one-camera Kouch report is a nearby analogy; Cowling’s study is better for measuring physical failure stages. All of these are ways to choose checks, not evidence that we know your robot’s root cause.

Bottom line

In short: one-ball/one-basket is a reasonable baseline, while 40–50 demos is only a starting point. Keep the existing ~150 recordings. Begin with stable diffuse lighting. Test A alone, B alone and both together, particularly after the first placement; add mixed/full-scene coverage where needed. Add controlled lighting diversity if deployment requires it. None of this requires giving up the two-ball goal.