Model not learning when run on macbook

Basically, when I run the model, it runs fine on an old intel-based Imac. (slow but runs). On the console I get errors about WebGL not available.

On my mac book which has M4 max chip with bunch GPUs, the model doesn’t learn. loss starts at 0 and stays at 0. when I look at the console, there are no errors. I have attached both outputs.

Since exact same issue happened in week2, I spent the last two weeks trying to figure out and nothing worked. I am sure it’s not the code. I had some suspicion it was due to the importing of sprite data because of it’s complexity, I am sure now, that was not the case.

oh yea, small but very import detail too. The same occurs when I run the ungraded labs too.

I am thinking maybe it’s WebGL issue? since even though the imac doesn’t have it, training works? Or maybe it has to do with compatibility issue between CPU tf (imac) and CPU/GPU tf (macbook)…

If appreciate any guidance.

Laptop output for comparison

can I know, are you using bracket?

Also the info log, shows your code run down already, so in case you tried doing again, you need to delete the file complete for the week assignment, download again and then run through the console.

Here is a step by step explanation when I had encountered similar issue.

I have done as you instructed and that didn’t help. When I went through the example you referenced, it looks like you had different issue than mine.

Everything runs fine. it’s just the model is not learning during training.

I have used both bracket and VS code. I launched through the python built in library. I deleted the files, redownloaded from github and still the same.

Doesn’t that show that everything does not run fine?

can you confirm if you are downloaded files is the main local drive?

when you re-did this again, did you get the same platform error log info or something else?

You need to also make sure delete the chrome browser history and cookies.

Go through the instructions for web chrome setting, chances are, their might be firewall settings. also as I asked you for a clear console screenshot, you haven’t provided that.

When you said you deleted the file? are you deleting only the assignment files or the whole week 4 files?The link I shared was different from your issue but mentions each step to be taken. When I had similar issue for week4, even though my codes were fine and settings were fine, assignment files werent executint.

Steps I took was I deleted the entire downloaded files for the course, then re-downloaded, transferred the week4 file folder to the main local drive, deleted chrome history and cookies. Open bracket again, and opened then new week 4 assignment file (if you rename also, you still continue encounter the issue). Write the codes from scratch rather than copy paste, connected to Chrome browser to console, went through the log info, why it wasn’t working (found had some firewall settings for privacy settings). removed those.

Re-did the whole process again, eventually the code executed. So check your browser settings, how and where you are saving your downloaded files and if bracket is being allowed to web chrome console with all the permissions.

Another issue I remember I had was I wasn’t using an updated version of bracket.

Thank you for the help, I was able to figure it out. It was because I didn’t have the chrome browser up to date. (I can’t believe the amount time and research I went through for that lol).

1 Like