AustingDong
commited on
Commit
·
8f98bd6
1
Parent(s):
360591a
Update cam.py
Browse files- demo/cam.py +2 -1
demo/cam.py
CHANGED
@@ -344,7 +344,8 @@ class AttentionGuidedCAMLLaVA(AttentionGuidedCAM):
|
|
344 |
outputs_raw = self.model(**inputs)
|
345 |
|
346 |
self.model.zero_grad()
|
347 |
-
print("
|
|
|
348 |
loss = outputs_raw.logits.max(dim=-1).values.sum()
|
349 |
loss.backward()
|
350 |
|
|
|
344 |
outputs_raw = self.model(**inputs)
|
345 |
|
346 |
self.model.zero_grad()
|
347 |
+
print("outputs_raw", outputs_raw)
|
348 |
+
|
349 |
loss = outputs_raw.logits.max(dim=-1).values.sum()
|
350 |
loss.backward()
|
351 |
|