- conda env
- conda create -n sam python=3.11
- conda activate sam
- conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia
- export
- export AM_I_DOCKER=False
- export BUILD_WITH_CUDA=True
- (這個應該不用) export CUDA_HOME=/path/to/cuda-11.3/
- codebase
- git clone: https://github.com/IDEA-Research/Grounded-Segment-Anything.git
- cd Grounded-Segment-Anything/
- python -m pip install -e segment_anything
- pip install torch==2.0.0+cu118
- python -m pip install -e GroundingDINO pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118 =>?
pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118 - solved with this: IDEA-Research/Grounded-Segment-Anything#412 (comment)
The detected CUDA version (11.8) mismatches the version that was used to compile
PyTorch (12.1). Please make sure to use the same CUDA versions.
This note is yours, feel free to play around. 🎮 Type on the left ⬅️ and see the rendered result on the right. ➡️
- Create my first HackMD note (this one!)
- Change its title
- Add a tag
🚀
Let's try it out! Apply different styling to this paragraph: HackMD gets everyone on the same page with Markdown. ==Real-time collaborate on any documentation in markdown.== Capture fleeting ideas and formalize tribal knowledge.
- Bold
- Italic
- Super^script^
- Sub
script -
Crossed - ==Highlight==
:::info
:bulb: Hint: You can also apply styling from the toolbar at the top
Drag-n-drop image from your file system to the editor to paste it!
Click on the Sharing menu
- Register and sign-in to HackMD (to use advanced features 🎉 )
- Set Permalink for this note
- Copy and share the link with your team
:::info :pushpin: Want to learn more? ➜ HackMD Tutorials :::
- Table
Features | Tutorials |
---|---|
GitHub Sync | 🔗 |
Browser Extension | 🔗 |
Book Mode | 🔗 |
Slide Mode | 🔗 |
Share & Publish | 🔗 |
- LaTeX for formulas
- Code block with color and line numbers:
var s = "JavaScript syntax highlighting";
alert(s);
- UML diagrams
Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks!
Note left of Alice: Alice responds
Alice->Bob: Where have you been?
- Auto-generated Table of Content [ToC]
Leave in-line comments! [color=#3b75c6]
- Embed YouTube Videos
{%youtube PJuNmlE74BQ %}
Put your cursor right behind an empty bracket {} ⬅️ and see all your choices.
- And MORE ➜ HackMD Tutorials