Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
fbc968f
Created using Colab
Airport237 Oct 23, 2025
6145c13
Update requirements.txt
Airport237 Oct 23, 2025
4444139
Update requirements.txt
Airport237 Oct 23, 2025
7f802cb
Update predictor.py
Airport237 Oct 23, 2025
a3f2870
Created using Colab
Airport237 Oct 23, 2025
8e95a7a
Created using Colab
Airport237 Oct 27, 2025
e443ede
Fix loading model state dict in notebook
Airport237 Oct 27, 2025
63e5781
Created using Colab
Airport237 Oct 27, 2025
e4ca9f6
idk how
trymkyvaag Oct 27, 2025
8c6311f
fix so3 act
trymkyvaag Oct 27, 2025
10ca342
added spacekraft test
trymkyvaag Oct 27, 2025
0cc3211
meep
trymkyvaag Oct 27, 2025
debf370
both
trymkyvaag Oct 27, 2025
871e65d
Merge pull request #2 from Airport237/test_spacekraft_image
Airport237 Oct 27, 2025
c82b4c1
added IR
trymkyvaag Oct 27, 2025
344279d
Merge branch 'test_spacekraft_image' into 3-IR
trymkyvaag Oct 27, 2025
0a8e18f
add mask class
trymkyvaag Oct 27, 2025
f9ccdad
mask bright pic
trymkyvaag Oct 29, 2025
db36d27
crop img
trymkyvaag Oct 29, 2025
2e25d47
eh
trymkyvaag Oct 29, 2025
87446d8
Created using Colab
Airport237 Nov 19, 2025
ab12356
Updated path info
Airport237 Nov 19, 2025
1fa6d31
making some progress
trymkyvaag Nov 19, 2025
dca7606
New Class for Data
Airport237 Nov 19, 2025
87fc62a
m
trymkyvaag Nov 19, 2025
22c6581
Merge branch 'justin-please' into add-translation-head
trymkyvaag Nov 19, 2025
b369197
test
trymkyvaag Nov 19, 2025
622535c
test, trying to get to run in colab
trymkyvaag Nov 20, 2025
0c2e732
try this j
trymkyvaag Nov 23, 2025
73c8eb4
hm
trymkyvaag Nov 23, 2025
9ac44cf
max num samples
trymkyvaag Nov 23, 2025
d2d921f
test
trymkyvaag Nov 23, 2025
a93f763
added debug
trymkyvaag Nov 23, 2025
aa08f7e
fix
trymkyvaag Nov 23, 2025
aa5cca0
d
trymkyvaag Nov 23, 2025
7edfdb2
change ame
trymkyvaag Nov 23, 2025
c32bd18
mjau
trymkyvaag Nov 23, 2025
be4bdba
mjau mjau
trymkyvaag Nov 23, 2025
0d0b907
i am so dumb
trymkyvaag Nov 23, 2025
ee9164e
AHAQHAHAHAHAHAHAHHHHHHHHHHH
trymkyvaag Nov 23, 2025
9fdc12f
faen i helvete
trymkyvaag Nov 23, 2025
e4aebc6
yyaaayy
trymkyvaag Nov 23, 2025
baded1d
hey
trymkyvaag Nov 23, 2025
2acd18b
Merge branch 'add-translation-head'
trymkyvaag Nov 23, 2025
65e0fb0
test
trymkyvaag Nov 23, 2025
54c2456
raawr
trymkyvaag Nov 23, 2025
8ff5f86
test red print
trymkyvaag Nov 24, 2025
19378de
1 at
trymkyvaag Nov 24, 2025
6fd07e9
mjau
trymkyvaag Nov 24, 2025
0c3d794
junk
trymkyvaag Nov 24, 2025
51b6929
mini fix
trymkyvaag Nov 24, 2025
0ce5479
Merge branch 'add-translation-head'
trymkyvaag Nov 24, 2025
e1edf3e
test
trymkyvaag Nov 24, 2025
bfdfde5
mjau
trymkyvaag Nov 24, 2025
966e143
to dev
trymkyvaag Nov 24, 2025
638dc26
mjau
trymkyvaag Nov 24, 2025
64a9128
addede kelvins for load dict
trymkyvaag Nov 24, 2025
ebc6082
pre
Airport237 Nov 24, 2025
615be5d
pre
Airport237 Nov 24, 2025
f3edb26
pre
Airport237 Nov 24, 2025
2faa64e
pre
Airport237 Nov 24, 2025
3eb676d
mjau
trymkyvaag Dec 1, 2025
7eb305d
mjau
trymkyvaag Dec 1, 2025
dd99536
test
trymkyvaag Dec 1, 2025
83f9ba8
cleanup
trymkyvaag Dec 1, 2025
8d6cfee
mjau
trymkyvaag Dec 1, 2025
de3e6b3
change eval
Airport237 Dec 1, 2025
4317460
First test new evla script
Airport237 Dec 1, 2025
878cd11
fix
Airport237 Dec 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
i2s
pascal3d_checkpoint.pt
modelnet10so3_checkpoint.pt
modelnet10_test.npz
__pycache__/
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/image2sphere.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

138 changes: 138 additions & 0 deletions Run in colab
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
Run in colab


# 1. Clone the repo
!git clone https://github.com/Airport237/image2sphere.git

# 2. Move into the folder
%cd image2sphere

# 3. Checkout the specific branch
!git fetch origin
!git checkout add-translation-head




# !pwd (make sure in i2s)

from google.colab import drive
drive.mount('/content/drive')
! unzip /content/drive/MyDrive/smallspeed.zip -d /content/speedplus_data

# '''
# Preprocess Images into correct format
# Code adapted from https://github.com/tpark94/spnv2/blob/main/tools/preprocess.py
# '''
# import json
# import os
# import cv2
# import tqdm
# import numpy as np
# import torch #added for sam2

# datadir = '/content/speedplus_data/lightbox'
# # Read labels from JSON file
# jsonfile = '/content/speedplus_data/lightbox/test.json'
# print(f'Reading JSON file from {jsonfile}...')
# with open(jsonfile, 'r') as f:
# labels = json.load(f) # list

# domain = ''
# split = 'test.json'
# outdir = os.path.join(datadir, domain, 'labels')
# if not os.path.exists(outdir): os.makedirs(outdir)
# csvfile = os.path.join(outdir, split.replace('json', 'csv'))
# print(f'Label CSV file will be saved to {csvfile}')

# # Where to save resized image?
# imagedir = os.path.join(datadir, domain,
# f'images_{768}x{512}_RGB')
# if not os.path.exists(imagedir): os.makedirs(imagedir)
# print(f'Resized images will be saved to {imagedir}')


# # if args.load_masks:
# # maskdir = os.path.join(datadir, domain,
# # f'masks_{int(cfg.DATASET.INPUT_SIZE[0]/cfg.DATASET.OUTPUT_SIZE[0])}x{int(cfg.DATASET.INPUT_SIZE[1]/cfg.DATASET.OUTPUT_SIZE[0])}')
# # if not os.path.exists(maskdir): os.makedirs(maskdir)
# # print(f'Resized masks will be saved to {maskdir}')

# # Open
# csv = open(csvfile, 'w')

# for idx in tqdm.tqdm(range(len(labels))):

# # ---------- Read image & resize & save
# filename = labels[idx]['filename']
# image = cv2.imread(os.path.join(datadir, 'images', filename), cv2.IMREAD_COLOR)
# image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
# # image = cv2.cvtColor(image, cv2.COLOR_GRAY2RGB)
# image = cv2.resize(image, [768, 512])
# cv2.imwrite(os.path.join(imagedir, filename), image)

# # ---------- Read mask & resize & save
# # if args.load_masks:
# # mask = cv2.imread(os.path.join(datadir, domain, 'masks', filename), cv2.IMREAD_GRAYSCALE)
# # mask_out = cv2.resize(mask, [int(s / cfg.DATASET.OUTPUT_SIZE[0]) for s in cfg.DATASET.INPUT_SIZE])
# # cv2.imwrite(os.path.join(maskdir, filename), mask_out)

# # ---------- Read labels
# q_vbs2tango = np.array(labels[idx]['q_vbs2tango_true'], dtype=np.float32)
# r_Vo2To_vbs = np.array(labels[idx]['r_Vo2To_vbs_true'], dtype=np.float32)

# # ---------- Bounding box labels
# # If masks are available, get them from masks
# # If not, use keypoints instead
# # if args.load_masks:
# # seg = np.where(mask > 0)
# # xmin = np.min(seg[1]) / camera['Nu']
# # ymin = np.min(seg[0]) / camera['Nv']
# # xmax = np.max(seg[1]) / camera['Nu']
# # ymax = np.max(seg[0]) / camera['Nv']


# # CSV row
# row = [filename]

# row = row + q_vbs2tango.tolist() \
# + r_Vo2To_vbs.tolist() \
# # + [xmin, ymin, xmax, ymax]
# row = ', '.join([str(e) for e in row])

# # Write
# csv.write(row + '\n')

# csv.close()
!pip install -r requirements.txt #gonna fail
!pip install e3nn
!pip install healpy

%cd /content/image2sphere

%cd /content/image2sphere

!python -m src.train \
--dataset_name speed+ \
--dataset_path /content/speedplus_data/ \
--results_dir /content/results_speedplus \
--device cuda \
--num_epochs 5 \
--batch_size 2
'''
%cd /content/image2sphere

!python -m src.train \
--dataset_name speed+ \
--dataset_path /content/speedplus_data \
--results_dir /content/results_speedplus_lowmem \
--device cpu \
--num_epochs 1 \
--batch_size 1 \
--num_workers 0 \
--encoder resnet18_pretrained \
--sphere_fdim 512 \
--train_grid_n_points 4096 \
--train_grid_rec_level 3 \
--eval_grid_rec_level 5
'''
Loading