-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d5ed12
commit 6388344
Showing
10 changed files
with
264 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,8 @@ venv.bak/ | |
/data | ||
/assets | ||
/test/data | ||
*.zip | ||
/raw | ||
|
||
#WandB | ||
/notebooks/wandb | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+10 MB
data081/HCC-TACE-Seg/raw/1.2.276.0.7230010.3.1.3.8323329.41.1604860085.518229/00000001.dcm
Binary file not shown.
14 changes: 14 additions & 0 deletions
14
data081/HCC-TACE-Seg/raw/1.2.276.0.7230010.3.1.3.8323329.41.1604860085.518229/LICENSE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
License Information. The HCC-TACE-Seg collection is distributed under the CC BY 4.0 at https://creativecommons.org/licenses/by/4.0/ By downloading the data, you agree to abide by terms of this license. | ||
Data Usage Policy | ||
|
||
Any user accessing TCIA data must agree to: | ||
- Not use the requested datasets, either alone or in concert with any other information, to identify or contact individual participants from whom data and/or samples were collected and follow all other conditions specified in the TCIA Site Disclaimer. Approved Users also agree not to generate and use information (e.g., facial images or comparable representations) in a manner that could allow the identities of research participants to be readily ascertained. These provisions do not apply to research investigators operating with specific IRB approval, pursuant to 45 CFR 46, to contact individuals within datasets or to obtain and use identifying information under an IRB-approved research protocol. All investigators including any Approved User conducting “human subjects research” within the scope of 45 CFR 46 must comply with the requirements contained therein. | ||
|
||
- Acknowledge in all oral or written presentations, disclosures, or publications the specific dataset(s) or applicable accession number(s) and the NIH-designated data repositories through which the investigator accessed any data. Citation guidelines for doing this are outlined below. | ||
|
||
- If you are considering mirroring a copy of our publicly available datasets or providing direct access to any of the TCIA data via another tool or website using the REST API (https://wiki.cancerimagingarchive.net/x/NIIiAQ) please review our Data Analysis Centers (DACs) page (https://wiki.cancerimagingarchive.net/x/x49XAQ) for more information. DACs must provide attribution and links back to this TCIA data use policy and must require downstream users to do the same. | ||
|
||
The summary page for every TCIA dataset includes a Citations & Data Usage Policy tab. Please consult the Citation & Data Usage Policy for each Collection before using them. | ||
- Most data are freely available to browse, download, and use for commercial, scientific and educational purposes as outlined in the Creative Commons Attribution 3.0 Unported License or the Creative Commons Attribution 4.0 International License. In rare circumstances commercial use may be prohibited using Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0) or Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0). | ||
|
||
- Most data are immediately accessible and do not require account registration. A small subset of collections do require registration and special permission to gain access. Refer to the "Access" column on https://www.cancerimagingarchive.net/collections/ for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
import random | ||
import time | ||
|
||
import streamlit as st | ||
|
||
st.set_page_config(page_title="Surgeon Demo", page_icon="👋") | ||
|
||
# Mock Patient Details | ||
patient_info = { | ||
"Name": "John Doe", | ||
"Age": 34, | ||
"Gender": "Male", | ||
"MRN": "123456789", | ||
"Admission Date": "2023-04-01", | ||
"Diagnosis": "Appendicitis", | ||
"Surgeon Assigned": "Dr. Jane Smith", | ||
"Procedure": "TACE", | ||
} | ||
|
||
# Vital Signs (Mock, could be dynamically updated) | ||
vital_signs = { | ||
"SpO2": "98%", | ||
"Blood Pressure": "120/80 mmHg", | ||
"Respiratory Rate": "16 breaths/min", | ||
} | ||
|
||
# Display Patient Information in Sidebar | ||
st.sidebar.title("Patient Information") | ||
for key, value in patient_info.items(): | ||
st.sidebar.text(f"{key}: {value}") | ||
|
||
st.sidebar.title("Vital Signs") | ||
for key, value in vital_signs.items(): | ||
st.sidebar.text(f"{key}: {value}") | ||
|
||
# Initialize session state variables if they don't exist | ||
if "rotation" not in st.session_state: | ||
st.session_state.rotation = -45 # Start at 0 degrees | ||
if "rotation_direction" not in st.session_state: | ||
st.session_state.rotation_direction = 1 # Start moving towards -45 | ||
if "confidence" not in st.session_state: | ||
st.session_state.confidence = 98 # Start with high confidence | ||
if "spo2" not in st.session_state: | ||
st.session_state.spo2 = random.randint( | ||
80, 88 | ||
) # Random SpO2 value between 94% and 98% | ||
|
||
st.image(r"D:\Programming\AI\5ARIP10-ITP-T3G3\src\pages\xray_demo.gif", width=400) | ||
|
||
|
||
# Placeholder for dynamic metrics | ||
col1, col2, col3 = st.columns(3) | ||
rotation_placeholder = col1.empty() | ||
confidence_placeholder = col2.empty() | ||
spo2_placeholder = col3.empty() | ||
|
||
while True: | ||
# Update rotation | ||
if st.session_state.rotation_direction == 1: | ||
if st.session_state.rotation + 10 <= 45: | ||
st.session_state.rotation += 10 | ||
else: | ||
st.session_state.rotation = 45 # Correct to max 45 if overshooting | ||
st.session_state.rotation_direction = -1 | ||
else: | ||
if st.session_state.rotation - 10 >= -45: | ||
st.session_state.rotation -= 10 | ||
else: | ||
st.session_state.rotation = -45 # Correct to min -45 if overshooting | ||
st.session_state.rotation_direction = 1 | ||
|
||
# Update confidence based on rotation | ||
angle_from_zero = abs(st.session_state.rotation) | ||
st.session_state.confidence = round( | ||
98 - (15 * (angle_from_zero / 45)), 2 | ||
) # Decreases from 98% to 65% | ||
|
||
# Randomly vary SpO2 value | ||
st.session_state.spo2 = random.randint(80, 88) | ||
|
||
# Display updated metrics | ||
rotation_placeholder.metric( | ||
"Rotation", f"{st.session_state.rotation} °C", delta=None | ||
) | ||
confidence_placeholder.metric( | ||
"Confidence", f"{st.session_state.confidence}%", delta=None | ||
) | ||
spo2_placeholder.metric("Heart Rate", f"{st.session_state.spo2} BPM", delta=None) | ||
|
||
# Sleep for the duration of the GIF's rotation cycle or any desired update interval | ||
time.sleep(0.157) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.