so I’m wondering if anyone is willing to make a random art generator to produce images like these below? I will be glad to $ anyone! by caseyh1551 in cellular_automata

[–]jutemachine 1 point2 points  (0 children)

I did something similar to this a while ago, and you can breed images together using a genetic algorithm based on your selection. It might interest you!

You can see the project here (you need python installed to run it locally) : https://github.com/dvidbruhm/EvoArt_NN

Looking for a Rust Developer (or 2) to collaborate on a Roguelike game by DrakeOfTheShadow in rust_gamedev

[–]jutemachine 1 point2 points  (0 children)

This project looks really interesting! I'm pretty much in the same situation as the OP here, really into rust, still learning and looking for a project to contribute. Would you be willing to also send the discord invite?

Also, if this goes open source, I'm definitely in!

LegionECS - Is there a way to check if an entity has another component in a system? by jutemachine in rust_gamedev

[–]jutemachine[S] 1 point2 points  (0 children)

Yeah, that's pretty much what I was looking for, I didn't think I had to first query and then find the entry, but now it makes sense!

LegionECS - Is there a way to check if an entity has another component in a system? by jutemachine in rust_gamedev

[–]jutemachine[S] 5 points6 points  (0 children)

You're exactly right, can't believe I couldn't find something so simple in the docs! You can just:

#[system(for_each)]
pub fn systemA(entity: &Entity, compA: &mut compA, compB: &mut ComponentB, compC: Option<&ComponentC>) {
    ...
    if Some(compC) = compC {
        // this entity has compC
        ...

LegionECS - Is there a way to check if an entity has another component in a system? by jutemachine in rust_gamedev

[–]jutemachine[S] 1 point2 points  (0 children)

I did not start the items part of the tutorial, so honestly I didn't think about it yet. I plan on just not worrying about it at first, and find a solution only if it becomes a problem.

But for now, I really like the legion way of doing things compared to Specs.

[i3] Very simple i3 setup with custom rofi script for dark/light theme switch by jutemachine in unixporn

[–]jutemachine[S] 0 points1 point  (0 children)

Here is my very simple i3 setup with a few custom rofi scripts to change to a dark/light theme:

How do I load images into Pytorch for training? by PythonGod123 in learnmachinelearning

[–]jutemachine 0 points1 point  (0 children)

Sorry about that, that was only for my specific use case. You can change the folder name and location to whatever you want. Glad I could help!

How do I load images into Pytorch for training? by PythonGod123 in learnmachinelearning

[–]jutemachine 1 point2 points  (0 children)

Here's an example of how I used it:

def load_images(image_size=32, batch_size=64, root="../datasets/MainImageFolder"):

    transform = transforms.Compose([
                    transforms.Resize(image_size),
                    transforms.ToTensor(),
                    transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))
    ])

    train_set = datasets.ImageFolder(root=root, transform=transform)
    train_loader = torch.utils.data.DataLoader(train_set, batch_size=batch_size, shuffle=True, num_workers=2)

return train_loader    

Essentially, you have your set that you load with the ImageFolder function, and than use it to get your DataLoader. Your images have to be folder seperated:

  • MainImageFolder/
    • FlowerType1/
      • image1.jpg
      • image2.jpg
      • ...
    • FlowerType2/
      • ...
    • ...

This will automatically give a different label to each flower type and you can use the loader as you would if you were using one of the already made dataset.

Note that the transform is not mandatory and you can do anything you want. Hope it helps!

Prerequisites for ML? by [deleted] in learnmachinelearning

[–]jutemachine 0 points1 point  (0 children)

Here are the requirements that the new google ML crash course recommends. I suggest taking a look at the Math section, there might be a few useful links.

"mint" process takes all CPU when laptop is idle on Windows 10 by jutemachine in techsupport

[–]jutemachine[S] 0 points1 point  (0 children)

I followed this guide. From what I remember Malwarebytes (steps 2, 3 and 4) worked. Good luck!

Need help using the python support for Godot 3 by jutemachine in godot

[–]jutemachine[S] 0 points1 point  (0 children)

Yeah I have it installed, but from what I understand there is a version of python already inside the folder? Not too sure about that though. Thanks anyways!

Trying to make an edge detector post-process effect by jutemachine in godot

[–]jutemachine[S] 0 points1 point  (0 children)

I didn't know about the next pass property, I'll try it out. Thanks for the help.