Open Al-Murphy opened 2 months ago
That's weird. Your code works on my side, and I don't think I've changed anything about that code recently. What versions of logomaker and PyTorch are you using?
That is weird - logomaker v0.8, torch v2.4.0 and since it seems relevant numpy v2.0.1
Hi Jacob -- I also get the same issue when running the example code, although casting to torch.float64
worked for me too. Package versions:
torch 2.3.1+cu121
tangermeme 0.3.0
numpy 2.0.0
logomaker 0.8
Running the code in the tutorial:
Results in:
Not sure if this is specific to my set up with (Tangermeme v0.2.3) or if it wasn't caught as I couldn't see any tests for
plot_logo
. However I managed to resolve the issue by switching fromtype(torch.float32)
totype(torch.float64)
as follows:The error comes back to logomaker here, checking if a variable
floor
isisinstance(floor, (float, int))
. Floor is calculated per index positionp
of the dataframe as:So I'm not totally sure why it fails with int32 but not int64?
Alan.