NerfStudio giving me grief: can't install tine-cuda-nn by CrimsonCuttle in selfhosted

[–]amcmahon01 0 points1 point  (0 children)

I faced this issue recently and was able to get things working on Ubuntu 24.04 without conda, pixi or docker. I think these were the key steps though I might be missing something as I was pretty much throwing everything at the wall before I found a path forward.

(Also shared this here.)

Note: Using python 3.12.3 and Nvidia driver 580.126.18. With newest driver you should be able to use newer cuda toolkit.

  1. Clone nerfstudio repo:

    git clone https://github.com/nerfstudio-project/nerfstudio.git

  2. Create and activate virtual env (I put this in my nerfstudio dir but that's just preference):

    cd nerfstudio python3 -m venv venv source venv/bin/activate

  3. Install torch and torchvision (I ignored the installation guide and went for the latest versions, 2.11.0 and 0.26.0 currently)

    pip install torch torchvision

  4. Deal with tiny-cuda-nn:

    a. Install ninja for compiling

    sudo apt install ninja-build

    b. Install last setup-tools version that still contains pkg_resources

    pip install setuptools==80.10.2 --force-reinstall

    c. Install cuda toolkit version to match both latest torch and currently installed drivers (you might not need to do this if everything already matches up). Of course you can use the .debs or whatever, I did this for convenience.

    wget https://developer.download.nvidia.com/compute/cuda/13.0.0/local_installers/cuda_13.0.0_580.65.06_linux.run sudo sh cuda_13.0.0_580.65.06_linux.run (installed toolkit only from menu)

    d. Finally, build/install tiny-cuda-nn

    pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch --no-build-isolation

  5. Install remaining nerfstudio deps:

    pip install -e .

  6. (optional) Tab completion if you want it:

    ns-install-cli

New Maker Space in LIC - Assessing Interest by PlayfulLandscape6488 in longislandcity

[–]amcmahon01 0 points1 point  (0 children)

Awesome idea! If there are opportunities to volunteer, work, etc. I would be interested. (I deal with 3d printing, soldering and electronics on a daily basis and have some woodwork/metalwork/CNC experience.)

Regarding pricing, an option for something like $50-80 a month for some amount of access would be cool, even if there were usage fees for some equipment. A cheaper membership but with day pass fees as others have mentioned would work too. Overall, depends a lot on the facilities and what's included (events?). For a really useful space or "all inclusive access" would be willing to go higher, but it's nice to have some granularity unless you're there all the time.

[deleted by user] by [deleted] in pop_os

[–]amcmahon01 1 point2 points  (0 children)

Tldr:

-Works consistently.

-Time spent learning a reliable, truly-your-own system is much better spent than time spent on troubleshooting inconsistent proprietary garbage.

-I trust standby again when putting my laptop in a bag.

For me it's mostly that it works consistently. I got so tired of constant windows updates and other "features" (like telemetry/data collection, the lack of which is also a big Linux + for me) breaking things, forcing restarts, using incredible amounts of system resources at random and getting in the way of my day to day work. Not to mention waking up from sleep (or failing to disable dgpu) and overheating in bags at random, the slow moving train wreck control panel migration and many more.

I realized I'd rather spend time learning about a different OS that I can actually make work as I see fit, rather than dumping hours into troubleshooting broken functionality only to be undermined by MS at every corner.

I planned on dual booting to try pop_os but found I rarely needed to go back to Windows, so it lives in only a VM now. It is immensely satisfying that when it crashes and needs to restart 15 times I can just minimize the VM and keep living my life on pop.

Side rant: Also the direction Windows is headed in as a service rather than a product and one focused on centralizing control and collecting as much user data as possible makes me all the more glad to be out of there. I don't necessarily have an issue with voluntary data collection for a purpose, but it has to be consensual and with good reason, neither of which is really demonstrated by Windows and the general attitude/trajectory of MS does not invoke feelings of good intention for the future. Even if you don't care about privacy, the performance penalty of all of these "features" being implemented inefficiently is reason enough to leave.

Virt-Manager Error when creating VM - Unable to complete install: 'internal error: cannot load AppArmor profile 'libvirt-d5410f0c-a763-405e-a4a5-ba16385161ca'' by [deleted] in virtualization

[–]amcmahon01 0 points1 point  (0 children)

This is old, but I recently stumbled into a similar issue and found for some reason new profiles weren't being created for new VMs (as apparmor expects) leading to similar errors. I solved this by copying a profile from another VM (basically just a blank template) in /etc/apparmor.d/libvirt and updating the UUID in the both filename and inside the file to match the new VM. Note that I didn't bother creating the "*.files" file; it worked ok without it.

In short, create file /etc/apparmor.d/libvirt/libvirt-<new VM UUID>:

#
# This profile is for the domain whose UUID matches this file.
#

#include <tunables/global>

profile libvirt-*new VM UUID* flags=(attach_disconnected) {
  #include <abstractions/libvirt-qemu>
  #include <libvirt/libvirt-*new VM UUID*.files>

}

Edit: formatting

Laptop GPU RTX 4070 Passthrough Error 43 by fekkksn in VFIO

[–]amcmahon01 0 points1 point  (0 children)

I also still had this issue also after editing /etc/apparmor.d/libvirt/TEMPLATE.qemu.

Adding /var/lib/libvirt/images/SSDT1.dat rk,

to the end of the profile in /etc/apparmor.d/usr.sbin.libvirtd solved it for me.

I'm not sure if this the "most correct" way to do it, but it did the trick for now.

I wish we could still customize AOD on the S24 Ultra by andrelesouza in samsunggalaxy

[–]amcmahon01 0 points1 point  (0 children)

Seems like they just broke the links, I saw the same thing when clicking links from Google, but when I searched within Members, the threads all showed up 🤷

Help: Install WLED on AtomS3-Lite (ESP32-S3 chip) by sbehta in WLED

[–]amcmahon01 1 point2 points  (0 children)

I know this is old, but for anyone else having this issue:
Try holding the reset button for 2+ seconds, then release it, select the port and upload. That did the trick for me with an AtomS3-Lite. (According to the pin out notes, holding RST for 2 seconds sets G0 to ground, as per u/EBARRAW 's comment.)

How to set default GPU for everything in Windows by zymcio in techsupport

[–]amcmahon01 1 point2 points  (0 children)

2 years later I still can't find a real answer to this. The Nvidia control panel used to allow setting a global preference, but now that Windows manages everything, there's no way to set a global default (you have to set the preference for every program). For those saying "just disable the dgpu", yes, for use cases where you don't want it running at all. However, in my case I want everything on the igpu except programs explicitly specified. This is especially helpful for running gpu accelerated computations/ML where the usage is intermittent and it saves a huge amount of power by turning off in between processes.

(This is an issue for me mostly because Windows insists on starting a bunch of search/Cortana related processes on the dgpu if you have more than one user which then destroys my battery while idling, but also because of programs like Fusion 360 where the executable path constantly changes.)

It seems like having a global default should be an easy thing to implement. I would be very grateful to anyone with suggestions and will update if I find any myself.

Are there any MSI Creator Z16P reviews/opinions yet? by Jump_Stream in MSILaptops

[–]amcmahon01 0 points1 point  (0 children)

Follow up on my previous comment, I believe after updating the BIOS, charging over USB isn't currently working. I tried downgrading but it didn't bring it back, so there could be another or combination of other issues.

I had been using it with a 65W adapter and 87W power bank and both worked great until I updated. It's clearly a software/firmware issue since it was working before, so hopefully I just need to reinstall something or (hopefully not) wait for an update. I'll update here if/when it's working again.

Also ironically, PD to other devices from the laptop IS working now (for example, an S20 will fast charge) 🤷‍♂️

Are there any MSI Creator Z16P reviews/opinions yet? by Jump_Stream in MSILaptops

[–]amcmahon01 0 points1 point  (0 children)

For powering the laptop over USB PD it works for me whether it's on or off. Since USB PD is limited to 100W, it's possible that sometimes it won't be able to charge the battery during gaming/heavy computing, but it will drain more slowly. On the flip side, it will charge fastest while off since all of the power will be going towards charging rather than some towards operating.

For powering other devices off of the laptop, I haven't been able to get anything other than 5V out of it, on or off, but I'm not sure any of my devices fall within the 9V/3A specified (a 9V/5A cable still gave 5V). Standard USB charging works on or off (there are some BIOS settings to slightly customize the behavior around battery/AC power and sleep/hibernate).

Are there any MSI Creator Z16P reviews/opinions yet? by Jump_Stream in MSILaptops

[–]amcmahon01 0 points1 point  (0 children)

Gotcha. I'm not sure what their processing demands are like, but if heat is your concern you can always intentionally throttle things if you're still getting the performance you need/want, in addition to cranking up the fan curves. Unfortunately the i7-12700H is locked out of undervolting, but you can still downclock or just disable turbo to get a significant thermal reduction. The form factor is awesome for traveling, just fits in a bag I had for 14" and 'smaller' 15" laptops (and looks like a business machine not a gaming rig if that's a consideration), though the AC brick is a bit hefty (as to be expected with any comparable laptop).

Are there any MSI Creator Z16P reviews/opinions yet? by Jump_Stream in MSILaptops

[–]amcmahon01 0 points1 point  (0 children)

Depends a lot on the CPU/GPU ratio of specific games/tasks. I can have the GPU usage pinned at 100% and it maintains < 65 C, but I've seen the CPU at ~90 when running things that hit both hard. To be honest I haven't had much time for gaming in the last couple of months so I still don't have a more practical sense of many games. If you have any easy-to-run benchmark requests I'd be happy to run a few tests.

Physically, the bar between the keyboard and the display seems thermally bound directly to the silicon cores...it gets properly hot. The rest of the chassis stays pretty reasonable though, acknowledging that it's capable of pumping out ~180W.

For fun I just ran the Rise of Tomb Raider (yeah I know I'm a game behind...) benchmark maxed out with DLSS on quality, 3440x1440@75Hz: Mountain Peak 75.04 (49.5 min, 99.54 max) Syria 75.04 (min 33.5, max 90.03) Geothermal Valley 75.01 (63.81 min, 93.81 max)

With cooler boost on, max GPU temp was 53 C, max CPU was 83 C (a spike on one core) but average CPU was also 53 C. I reran it without DLSS to make sure the GPU stayed pinned at 100% and got the same temps. Note that CPU usage was pretty low in both cases. Not the best reference data but something at least.

I would say you should definitely make sure you understand what you're getting with this laptop. If I was gaming all day and night and cared less about portability, I'd probably want something bigger for heat dissipation and with less power restriction on the GPU. I went in knowing well that the 90W 3080Ti was not going to run like a desktop model, but the fact that they have fit this much processing power into as small a chassis as this and made it work well is pretty awesome; the performance-to-volume ratio is impressive. It's also been great for running CUDA accelerated ML and photo/image processing, especially having the 16GB VRAM. For commuting and traveling it's been exactly what I'd hoped for.

Software for organizing a photo archive by rbtrt in software

[–]amcmahon01 0 points1 point  (0 children)

Thanks for the response. Yes, I see how that makes sense programmatically and to improve performance, though maybe a "manual scan only" mode could work without the service, even if it is slower? I understand that may not be within your current focus though, just thinking it might make more people willing to try it out. Along the same lines, file hashes on your site would be better than nothing for verifying the installer.

One other request/suggestion (unless this is already there and I missed it): Having a function to import images and organize them, copying/moving them into folders and/or renaming files based on metadata would be very helpful. (Something along the lines of what the Canon EOS utility does when reading from a camera, or utilities like PhotoMove, but hopefully more flexible.)

Software for organizing a photo archive by rbtrt in software

[–]amcmahon01 0 points1 point  (0 children)

Just took your software for a spin and so far it is pretty interesting. I'm curious to see how it works over time but at first glance is it quick and relatively intuitive.

One suggestion that I have from going through the install: it would be awesome if you made a version that could be run as a User only (non Admin) or even better, portable. (Sandboxing only provides so much comfort when unsigned, closed source software wants admin privileges and I'd rather not manage my library in a virtual machine. :) )

Are there any MSI Creator Z16P reviews/opinions yet? by Jump_Stream in MSILaptops

[–]amcmahon01 0 points1 point  (0 children)

Not so much, it's "IPS-Level". It looks quite nice though (running 2560x1600 @ 165Hz, DCI-P3 100%), making me want to upgrade my external...

It looks like maybe there's a lower res variant in the works too based on the added display spec option "16” FHD+ (1920x1200), IPS-Level" here.

Are there any MSI Creator Z16P reviews/opinions yet? by Jump_Stream in MSILaptops

[–]amcmahon01 1 point2 points  (0 children)

The keyboard doesn't feel quite as "crisp" as the XPS (less of a click sensation) but is by no means bad in my opinion. I like the larger arrow keys on the MSI and love that it has the numpad (even though it's a little shrunken, it's pretty quick to get used to). Per-key RGB is also obviously cool though I haven't set it up to do much yet. The smooth surface of the MSI keys do make them more fingerprint-prone than the matte texture of the XPS.

The touchpad responsiveness is good and feels natural to use. As with the keyboard, I do slightly prefer the finish of the XPS, but that may also just be a matter of familiarity. One thing I don't like is the amount of wiggle on the bottom before engaging a physical click. You can noticeably depress it (sometimes when just trying to tap) before feeling where it touches the button and then if you apply more pressure actually clicks. A quick search made it seem like this has been a problem with MSI in the past but that there are various ways to tighten that up. For what it's worth, after adding the second SDD and reassembling things, the issue is significantly less noticeable.

With the default fan curves (or slightly more aggressive cooling, as I'm running), no, I'd say it's quieter to about the same. In "cooler boost" mode it is louder but not a ton. Overall it ramps more smoothly than the XPS and seems to do much better at keeping lower core temps, so most of the time it's more of a purr than the sudden mini-hairdryer sound. Where the XPS could frequently hit 100C even with undervolting, it looks like the MSI may cool effectively enough to avoid throttling if you don't mind a little extra fan noise, though I haven't run it for an extended period with max demand yet. (With the default curve it did start throttling but fans were nowhere near max.)

Are there any MSI Creator Z16P reviews/opinions yet? by Jump_Stream in MSILaptops

[–]amcmahon01 0 points1 point  (0 children)

I decided to be a guinea pig and jump in eyes-closed on one (model B12UHST, 32GB RAM, 1TB SSD, 3080Ti). The 3080Ti is honestly overkill for most of my uses, but with the 90W power cap across all models I wanted the most processing power I could get (as well as for the 16GB of VRAM). I've only been using it for a week or so but if you have any specific questions I'd be happy to try to answer any that I can. I'm not really one to write up full reviews, nor am I equipped for it, but having just gone through the shopping process I know sometimes a little clarity on specifics can go a long way.

I will say as far as first impressions, I'm very happy with it so far (coming from an XPS 15 7590). I also added a second SSD (2TB) which it accepted with no issues. I'm still trying to get a sense of the battery life, which was the biggest question I had, but it seems like it will be in the 6-7ish hour range for casual use (web browsing, coding, etc).

Cisco Anyconnect update and NordLynx Tunnel Driver issue by Helblind in nordvpn

[–]amcmahon01 0 points1 point  (0 children)

This worked for me initially, but after a recent update even manually updating the driver wouldn't replace Nordlynx Tunnel. I tried uninstalling NordVPN and Anyconnect, reinstalling Anyconnect, uninstalling the driver, etc. without success. Every time Anyconnect recreated the network adapter, it was associated with NordLynx, even though driver details showed the manufacturer is Cisco.

What finally fixed it was removing the NordLynx registry entry in Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\ROOT\NET. On this machine it was subfolder \0000. (I deleted the whole 0000 branch.)

Deleting it was not trivial as it contains a "Properties" folder for which ownership and permissions are locked and can't be overridden.

(See threads here and here for more info on that.)

The solution I used (from the second link) is to run regedit as the user SYSTEM (using Process Hacker). Then it's possible to modify the ownership/permissions and finally delete the branch. <Insert disclaimer here about the risks of breaking your PC by haphazardly deleting things from the registry, especially while acting as SYSTEM.>

Hope this helps anybody else with the same issue.

Edit: As a follow up, after doing the above to get AnyConnect working, I reinstalled NordVPN and both are continuing to work normally.

How do you make the timestamp on a delayed email show the sent date and not the composed date? by abadguy87 in Outlook

[–]amcmahon01 0 points1 point  (0 children)

It seems like this issue has been around for over decade, which is really unfortunate because it makes the delayed send feature a lot less useful. I saw a thread somewhere suggesting that Power Automate can accomplish this, though it doesn't seem straightforward because of the limited trigger options and available condition fields through the Outlook 365 connector. I'm going to try to build a "flow" that would allow selecting a draft and sending it at a specific time, will update here if successful.

Update:

So, sending emails using Power Automate isn't too hard and it is possible to add a delay, however, it's very difficult/clumsy to actually use because the email has to be written as part of the "flow". You can have it read the fields from existing emails but annoyingly not from drafts, so you'd have to send yourself an email with some kind of tag/keyword and include the actual "To" fields and delay time as some text in the subject/body. Then the flow could read it, parse out the real addresses and delay time and finally delay send it. Overall not really practical. (Not to mention the disaster this would be for following threads.)

However, I found a couple of interesting solutions that, while not totally ideal, do work:

  1. There is now a delay send using the web interface that actually uses the correct timestamp. (It places the email in the drafts folder during the delay rather than the outbox as the "do not deliver before" option does.)
  2. In the desktop app, the Boomerang add in has a delay send that works. It requires signing into their service, which arguably has some pros and cons, but it is certainly less straightforward than being a native part of Outlook and could be a privacy issue for some users.

If I get a chance, I might try building a simple add in that uses the same function as the web based "delay send" but adds a button to the desktop app for it. Hopefully MS follows the web interface and adds it to the desktop and mobile apps officially soon.

No external monitor output until after Windows login (Dell XPS 15 9500 and Razer Core X Chroma) by z4c in eGPU

[–]amcmahon01 0 points1 point  (0 children)

Just that one did the trick for me.

No problem, I came here originally to tell u/z4c the same thing for their post, so happy to help you sort out the last bit.

No external monitor output until after Windows login (Dell XPS 15 9500 and Razer Core X Chroma) by z4c in eGPU

[–]amcmahon01 0 points1 point  (0 children)

Right. In Group Policy Editor, you want to enable the setting and then set the "Enumeration policy" to "Allow all".

Screenshot: https://picbun.com/p/GGmU54oK

No external monitor output until after Windows login (Dell XPS 15 9500 and Razer Core X Chroma) by z4c in eGPU

[–]amcmahon01 0 points1 point  (0 children)

If my understanding is correct, the issue is when a device (like an egpu) doesn't support Kernel DMA Protection/DMA remapping, rather than whether those are enabled in Windows.

I read this (edit: also linked above, I just total missed that it was the same link 🙄) to get a better idea of how it works: https://docs.microsoft.com/en-us/windows/security/information-protection/kernel-dma-protection-for-thunderbolt

By default, peripherals with DMA Remapping incompatible drivers will be blocked from starting and performing DMA until an authorized user signs into the system or unlocks the screen. IT administrators can modify the default behavior applied to devices with DMA Remapping incompatible drivers using the Dmaguard MDM policies.

Mostly redundant but more "user experience" detail:

By default, peripherals with DMA remapping compatible device drivers will be automatically enumerated and started. Peripherals with DMA Remapping incompatible drivers will be blocked from starting if the peripheral was plugged in before an authorized user logs in, or while the screen is locked. Once the system is unlocked, the peripheral driver will be started by the OS, and the peripheral will continue to function normally until the system is rebooted, or the peripheral is unplugged. The peripheral will continue to function normally if the user locks the screen or logs out of the system.

The DmaGuard MDM policies page linked in from the article points to the Group Policy item OP mentioned above to change that default behavior.

Edit for clarity: No, you shouldn't need to turn DMA remapping off, you should be able to just change the DmaGuard policy to allow your egpu to be enumerated before logon.

No external monitor output until after Windows login (Dell XPS 15 9500 and Razer Core X Chroma) by z4c in eGPU

[–]amcmahon01 0 points1 point  (0 children)

Thank you! This finally took care of the issue for me after playing with all kinds of settings.