Skip to content

Conversation

@leonardo-toffalini
Copy link
Contributor

No description provided.

@leonardo-toffalini
Copy link
Contributor Author

Screenshot 2025-06-24 at 21 45 13
Screenshot 2025-06-24 at 21 45 46

@jsuarez5341 jsuarez5341 merged commit c436c45 into PufferAI:3.0 Jun 25, 2025
12 checks passed
@elevatorguy
Copy link

elevatorguy commented Jun 25, 2025

file

Had to change float dists[env->num_resources]; to float dists[6]; for puffer_convert_circle and float dists[env->num_resources]; to float dists[8]; for puffer_convert to get python setup.py build_ext --inplace without error. (was C2057, C2466 and C2133)

With puffer eval puffer_convert --load-model-path=pufferlib/resources/convert/convert_weights.bin --train.device=cpu, got IndexError: pop from empty list.

WARNING: FILEIO: [resources/shared/puffers.png] Failed to open file

D:\puffer>

The experiments folder was created in the working directory at the time of the first puffer train command. pufferlib/resources may be a contingency/fallback in addition to just checking resources as just moving the relevant files results in error due to present windows status regarding the raylib dll path. (workaround: copying raylib-5.5_win64_msvc16 into pufferlib)

Not really sure how to implement as a fallback with the C raylib at present. Simply changing the LoadTexture parameter is a workaround, although adding a function - my_texture_load or otherwise - wrapping LoadTexture in binding.c or even better - instead of per environment - env_binding.h would due, right? (however env_binding.h doesn't include raylib)

Pending a commit:

static Texture2D my_texture_load(const char* s) {
    //LoadTexture(s); //(otherwise: fallback)
    //raylib prints WARNING if file not found (FILEIO)
    char* path = "pufferlib/";
    strcat(path, s);
    const char* path2 = path;
    return LoadTexture(path2);
}

Application exits without rendering resources.
(if my_texture_load; does render otherwise if correct path, directly - puffer_convert)

os.symlink(link_to, 'resources')

This creates file resources with contents pufferlib/resources/ in Windows 11.

Linux - in pufferlib:
file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants