ๆญฃๅœจๅŠ ่ฝฝ่ง†้ข‘...

่ง†้ข‘ๅŠ ่ฝฝๅคฑ่ดฅ

๐Ÿš€ The Segment Anything Model (SAM) has been upgraded to SAM2, featuring an efficient image encoder for segmenting images and videos. But does SAM2 outperform SAM1 in medical image and video segmentation? We're thrilled to present our paper "Segment Anything in Medical Images and Videos: Benchmark and Deployment"! We...

178,539 ๆฌก่ง‚็œ‹ โ€ข 2 ๅนดๅ‰ โ€ขvia X (Twitter)

10 ๆก่ฏ„่ฎบ

SkalskiP ็š„ๅคดๅƒ
SkalskiP2 ๅนดๅ‰

So cool to see a new wave of papers using SAM2!

parm ็š„ๅคดๅƒ
parm2 ๅนดๅ‰

I cannot get over the left video (bottom left)

Tanishq Mathew Abraham, Ph.D. ็š„ๅคดๅƒ
Tanishq Mathew Abraham, Ph.D.2 ๅนดๅ‰

great work, congrats to all the authors involved...

parm ็š„ๅคดๅƒ
parm2 ๅนดๅ‰

WOAH!

parm ็š„ๅคดๅƒ
parm2 ๅนดๅ‰

@iScienceLuvr !!! Time to nerd out on this

Degui Zhi ็š„ๅคดๅƒ
Degui Zhi2 ๅนดๅ‰

Wow! You are so fast!

Faizan Cheema ็š„ๅคดๅƒ
Faizan Cheema2 ๅนดๅ‰

this is beautiful ๐Ÿ˜Š makes me excited for the future

Krish Dasgupta ็š„ๅคดๅƒ
Krish Dasgupta2 ๅนดๅ‰

Thatโ€™s so quick ! Amazing. @ryancarson check this out. Was telling about this the other day.

Shakuntala Baichoo ็š„ๅคดๅƒ
Shakuntala Baichoo2 ๅนดๅ‰

Proud to be part of this incredible lab pushing the boundaries of AI and health! Amazing work and inspiring team!

Hamza Mahdi ็š„ๅคดๅƒ
Hamza Mahdi2 ๅนดๅ‰

Excited to try it out!

็›ธๅ…ณ่ง†้ข‘

๐ŸŽ‰ The best way to start the week is to find out that our MedSAM is finally published today in Nature Communications! **Segment anything in medical images** Paper: arXiv: Data & Code: MedSAM is the first promotable foundation model for medical image segmentation. **Highlights**: โญ Before its formal publication, we have received 220 citations and 1400+ GitHub stars ๐Ÿ™๐Ÿ™โค๏ธโ€๐Ÿ”ฅโค๏ธโ€๐Ÿ”ฅโค๏ธโ€๐Ÿ”ฅ ๐Ÿ“Š We curated a large-scale medical image dataset with 1,570,263 image-mask pairs, covering 10 imaging modalities and over 30 cancer types. ๐Ÿš€ Built on top of SAM (AI at Meta ) with transfer learning, we have significantly enhanced its segmentation performance of medical images. ๐Ÿ“ˆ Comprehensive evaluations of 86 internal validation tasks and 60 external validation tasks demonstrate its better accuracy and robustness than modality-wise specialist models. **What is Next? --- Clinical Translation!!** ๐Ÿ•Our next goal is to make the model deployable on laptops (CPUs) or other edge devices without reliance on GPUs. We have distilled a lightweight model, LiteMedSAM, offering a speed boost of 10x while maintaining accuracy. Plus, we have integrated it into the 3D Slicer plugin, providing an efficient tool for medical image segmentation. ๐ŸŒ To further promote developments in this field, we organize a competition on #CVPR2026: Segment Anything in Medical Images on Laptop! An out-of-the-box baseline has been released to reduce the entry barriers. Welcome to join us to push the boundary further: ๐Ÿ™ Massive thanks to MetaAI AI at Meta for their open-source project SAM and many reviewers/users for their invaluable feedback. A huge shoutout to my postdoc Jun Ma (JunMa) for his leadership on this project!! UHN AI Hub Vector Institute Peter Munk Cardiac Centre AI Department of Laboratory Medicine & Pathobiology U of T Department of Computer Science University of Toronto University Health Network Brad Wouters ๐Ÿ‡จ๐Ÿ‡ฆ Barry Rubin MD, PhD, FRCSC Shaf Keshavjee

Bo Wang

140,208 ๆฌก่ง‚็œ‹ โ€ข 2 ๅนดๅ‰

๐Ÿ“ข๐Ÿ“ข ๐๐ž๐ซ๐œ๐‡๐ž๐š๐: ๐๐ž๐ซ๐œ๐ž๐ฉ๐ญ๐ฎ๐š๐ฅ ๐‡๐ž๐š๐ ๐Œ๐จ๐๐ž๐ฅ ๐Ÿ๐จ๐ซ ๐’๐ข๐ง๐ ๐ฅ๐ž-๐ˆ๐ฆ๐š๐ ๐ž ๐Ÿ‘๐ƒ ๐‡๐ž๐š๐ ๐‘๐ž๐œ๐จ๐ง๐ฌ๐ญ๐ซ๐ฎ๐œ๐ญ๐ข๐จ๐ง & ๐„๐๐ข๐ญ๐ข๐ง๐ ๐Ÿ“ข๐Ÿ“ข PercHead reconstructs realistic 3D heads from a single image and enables disentangled 3D editing via geometric controls and style inputs from images or text. At its core is a generalized 3D head decoder trained with perceptual supervision from DINOv2 and SAM 2.1. We find that our new perceptual loss formulation improves reconstruction fidelity compared to commonly-used methods such as LPIPS. Our trained reconstruction model is able to generate 3D-consistent heads from a single input image. Even with challenging side-view inputs, the model robustly infers missing regions for a coherent, high-fidelity output. In addition, our architecture seamlessly adapts to downstream tasks: by swapping the encoder, we can transform the model into a disentangled 3D editing pipeline. In this scenario, we can control geometry through - potentially hand-drawn - segmentation maps, and condition style via image or text prompt. We also provide an interactive GUI to enable the exploration of our editing pipeline. ๐ŸŒ ๐Ÿ“ฝ๏ธ Great work by Antonio Oroz and Tobias Kirschstein

Matthias Niessner

18,855 ๆฌก่ง‚็œ‹ โ€ข 8 ไธชๆœˆๅ‰

๐Ÿ“ข๐Ÿ“ข ๐€๐ฏ๐š๐ญ๐Ÿ‘๐ซ ๐Ÿ“ข๐Ÿ“ข Avat3r creates high-quality 3D head avatars from just a few input images in a single forward pass with a new dynamic 3DGS reconstruction model. Video: Project: Our core idea is to make Gaussian Reconstruction Models animatable. We find that a simple cross-attention to an expression code sequence is already sufficient to model complex facial expressions. We then incorporate position maps from DUSt3R and feature maps from Sapiens to facilitate the prediction task. While DUSt3R's position maps act as a pixel-aligned initialization for the Gaussians' positions, the Sapiens feature maps help the cross-view transformer to match corresponding image tokens in the 4 input images. One major challenge in creating a 3D head avatar from smartphone images comes from inconsistent facial expressions when the subject could not remain perfectly static during the capture. We eliminate this static requirement by simply showing our model input images with different facial expressions during training. This technique makes our model robust to inconsistent input images later on. Finally, we show that despite the model has been trained with 4 input images, one can even create a 3D head avatar when only a single image is available. To achieve this, we employ a pre-trained 3D GAN to lift the single image to 3D and then render the 4 input images for our model. This allows us to create 3D head avatars from single images and even highly out-of-distribution examples like AI generated faces, paintings or statues. Great work by Tobias Kirschstein from his internship at Meta with Javier Romero, Artem Sevastopolsky, and Shunsuke Saito

Matthias Niessner

74,763 ๆฌก่ง‚็œ‹ โ€ข 1 ๅนดๅ‰

This is probably the most complex workflow Iโ€™ve ever built, only with open-source tools. It took my 4 days. It takes four inputs: author, title, and style; and generates a full visual animated story in one click in ComfyUI . I worked on it for four days. There are still some bugs, but hereโ€™s the first preview. Hereโ€™s a quick breakdown: - The four inputs are sent to LLMs with precise instructions to generate: first, prompts for images and image modifications; second, prompts for animations; third, prompts for generating music. - All voices are generated from the text and timed precisely, as they determine the length of each animation segment. - The first image and video are generated to serve as the title, but also as the guide for all other images created for the video. - Titles and subtitles are also added automatically in Comfy. - I also developed a lot of custom nodes for minor frame calculations, mostly to match audio and video. - The full system is a large loop that, for each line of text, generates an image and then a video from that image. The loop was the hardest part to build in this workflow, so it can process either a 20-second video or a 2-minute video with the same input. - There are multiple combinations of LLMs that try to understand the text in the best way to provide the best prompts for images and video. - The final video is assembled entirely within ComfyUI. - The music is generated based on the LLM output and matches the exact timing of the full animation. - Done! For reference, this workflow uses a lot of models and only works on an RTX 6000 Pro with plenty of RAM. My goal is not to replace humans, as Iโ€™ll try to explain later, this workflow is highly controlled and can be adapted or reworked at any point by real artists! My aim was to create a tool that can animate text in one go, allowing the AI some freedom while keeping a strict flow. I donโ€™t know yet how Iโ€™ll share this workflow with people, I still need to polish it properly, but maybe through Patreon. Anyway, I hope you enjoy my research, and letโ€™s always keep pushing further! :)

Lovis Odin

58,769 ๆฌก่ง‚็œ‹ โ€ข 10 ไธชๆœˆๅ‰

As I promised yesterday, I'll briefly explain LoRA training and share a workflow I made so you can do it quickly. First, let me answer a very common question: 'Why train LoRAs when we have such advanced models?' Even though we have incredibly advanced models now (like NBP), we still can't always get them to do specific things we want. Simplest example: the spritesheet LoRA I made the other day. I generated 1000 images with Nano Banana and only 100 were what I wanted. The LoRA I trained using those 100 images gives me nearly 100% consistent results. Second point is cost and speed. With LoRA, we can cut costs by 4-5x. And while doing that, we're generating 4-5x faster. How many images do you need for a good LoRA? This depends on your LoRA's complexity. For example, when I training the spritesheet LoRA, even though I used 100 images, I didn't include buildings in the training data, so this LoRA doesn't work for buildings. So think about your LoRA's use cases and add examples for as many use cases as possible to improve quality. What are paired images and how to train LoRAs for image-editing? When training LoRAs for image editing on fal, we call each edit example paired images - one with _start suffix, one with _end suffix. For example, if you're training a background remove LoRA, the unedited original photo will be your '_start' image. The image with background removed will be the '_end' image. Simply put: images we want to edit or use as reference get _start, target images we want to achieve get '_end'. Important: save both images with the same name. Like image332_start.jpg and image332_end.jpg. This way the system knows which images pair together. What about training LoRAs for models with multiple image inputs? Same logic. We still use _start and _end suffixes, but with one difference. Since there are multiple input images, we can number them: _start, _start1, _start2. Example: start images, 1st image = Woman portrait (image35_start.jpg) 2nd image = Glasses photo (image35_start1.jpg) 3rd image = Hat photo (image35_start2.jpg) Output image = portrait of woman wearing glasses and hat (image35_end.jpg) Can we do more detailed captioning? Yes. Similarly, you can improve training quality by creating a txt file for each set with the caption inside. Example: create image35.txt and write: 'Recreate the image by putting the glasses from the second image and the hat from the third image on the woman in the first image.' What are Steps? How many should I use? What's Learning Rate? Steps determines how many times the model sees and processes your training data (your images). Each step, the model learns a bit more. But as steps increase, so does the risk of overfitting. So there's no real default. But for a simpler LoRA with 20 paired images, 1000 steps is ideal. Here's a metaphor for the Steps and Learning Rate relationship: Imagine you have a balloon. Our goal is to inflate it to the optimal size. Steps = How many times we blow into the balloon Learning rate = How hard we blow each time If we blow too softly, we need to blow many more times. If we blow too hard, we risk popping it quickly and can't reach optimal size. Of course training won't explode, but it won't work as intended because it wasn't trained optimally. Training's done, now what? Once training's complete, you'll have a safetensors file. Every model you train on fal has a LoRA inference endpoint. In that inference, add your safetensors file link to the LoRA url input, and you can use your LoRA. Thanks for the read! The workflow in the video: If I forgot anything, let me know in the replies.

ilker

15,133 ๆฌก่ง‚็œ‹ โ€ข 6 ไธชๆœˆๅ‰

Google presents Still-Moving Customized Video Generation without Customized Video Data Customizing text-to-image (T2I) models has seen tremendous progress recently, particularly in areas such as personalization, stylization, and conditional generation. However, expanding this progress to video generation is still in its infancy, primarily due to the lack of customized video data. In this work, we introduce Still-Moving, a novel generic framework for customizing a text-to-video (T2V) model, without requiring any customized video data. The framework applies to the prominent T2V design where the video model is built over a text-to-image (T2I) model (e.g., via inflation). We assume access to a customized version of the T2I model, trained only on still image data (e.g., using DreamBooth or StyleDrop). Naively plugging in the weights of the customized T2I model into the T2V model often leads to significant artifacts or insufficient adherence to the customization data. To overcome this issue, we train lightweight Spatial Adapters that adjust the features produced by the injected T2I layers. Importantly, our adapters are trained on "frozen videos" (i.e., repeated images), constructed from image samples generated by the customized T2I model. This training is facilitated by a novel Motion Adapter module, which allows us to train on such static videos while preserving the motion prior of the video model. At test time, we remove the Motion Adapter modules and leave in only the trained Spatial Adapters. This restores the motion prior of the T2V model while adhering to the spatial prior of the customized T2I model. We demonstrate the effectiveness of our approach on diverse tasks including personalized, stylized, and conditional generation. In all evaluated scenarios, our method seamlessly integrates the spatial prior of the customized T2I model with a motion prior supplied by the T2V model.

AK

40,474 ๆฌก่ง‚็œ‹ โ€ข 2 ๅนดๅ‰

Want to create an avatar from a single image? FlexAvatar is a transformer model that creates full 360ยฐ, high-quality, and expressive 3D head avatar from just a single portrait image in minutes. Real-time Demo: FlexAvatar's lightweight architecture allows both animation and rendering in real-time, enabling interactive user experiences. To create a new 3D head avatar, only one image is required, e.g., from a webcam. The final avatar is ready after 2 minutes. Architecture: Under the hood, FlexAvatar adopts a transformer-based encoder-decoder design. The encoder maps the input image onto a latent avatar space, while the decoder produces 3D Gaussian attribute maps by incorporating the animation signal via cross-attention. The model learns all facial animations directly from the data without relying on pre-built 3D face models. This equips the avatars with realistic facial expressions. The internal avatar latent space can be conveniently used to integrate additional observations of a person via fitting. This enables use-cases where more than one image of a person is available, e.g., from a phone scan of the person. We train jointly on 2D monocular videos and multi-view data. However, in monocular videos, the animation signal leaks the target viewpoint, causing the model to produce incomplete 3D heads. We call this phenomenon entanglement of driving signal and target viewpoint. To prevent entanglement, we introduce bias sinks. These are learnable tokens that indicate whether a training sample stems from a monocular or a multi-view dataset. During training, the model learns to produce incomplete 3D heads only when the monocular token is present. During inference, FlexAvatar then always uses the multi-view token for which the model has learned to produce complete 3D heads. This simple design allows to combine the generalizability from monocular data with the quality of multi-view data. FlexAvatar summary: - Input: Single-image, phone scan, or monocular video - Output: Full 360ยฐ head avatar - Expressive animations - Real-time rendering and animation - Generalization to any portrait - Create a new avatar in 2 minutes - Use bias sinks to combine 2D and 3D data ๐Ÿ  ๐ŸŒ ๐ŸŽฅ Great work by Tobias Kirschstein and Simon Giebenhain!

Matthias Niessner

95,991 ๆฌก่ง‚็œ‹ โ€ข 7 ไธชๆœˆๅ‰

Introducing "Building with Llama 4." This short course is created with Meta AI at Meta, and taught by Amit Sangani, Director of Partner Engineering for Metaโ€™s AI team. Metaโ€™s new Llama 4 has added three new models and introduced the Mixture-of-Experts (MoE) architecture to its family of open-weight models, making them more efficient to serve. In this course, youโ€™ll work with two of the three new models introduced in Llama 4. First is Maverick, a 400B parameter model, with 128 experts and 17B active parameters. Second is Scout, a 109B parameter model with 16 experts and 17B active parameters. Maverick and Scout support long context windows of up to a million tokens and 10M tokens, respectively. The latter is enough to support directly inputting even fairly large GitHub repos for analysis! In hands-on lessons, youโ€™ll build apps using Llama 4โ€™s new multimodal capabilities including reasoning across multiple images and image grounding, in which you can identify elements in images. Youโ€™ll also use the official Llama API, work with Llama 4โ€™s long-context abilities, and learn about Llamaโ€™s newest open-source tools: its prompt optimization tool that automatically improves system prompts and synthetic data kit that generates high-quality datasets for fine-tuning. If you need an open model, Llama is a great option, and the Llama 4 family is an important part of any GenAI developer's toolkit. Through this course, youโ€™ll learn to call Llama 4 via API, use its optimization tools, and build features that span text, images, and large context. Please sign up here:

Andrew Ng

67,846 ๆฌก่ง‚็œ‹ โ€ข 1 ๅนดๅ‰

Explore state-of-the-art multimodal prompting in our new short course Large Multimodal Model Prompting with Gemini, taught by Erwin Huizenga in collaboration with Google Cloud. One interesting insight from this course: with multimodal models, prompt structure matters significantly. Placing text inputs, such as a patient's medical history, before image inputs, like an X-ray, can enhance the model's ability to contextualize and interpret visual data effectively. In other contexts, such as image captioning, you may get better results by putting the image first. Multimodal models behave differently than text-only LLMs, and effective prompting for models varies depending on the model youโ€™re using. In this course youโ€™ll learn how to effectively prompt Gemini models. Gemini's multimodal capabilities also enable new approaches in AI application development, for example: - The Gemini library handles various video formats (MP4, MOV, MPEG), streamlining applications using these formats. - Large context window (up to 1 million tokens) enables processing of extensive content, like analyzing multiple 50-minute videos simultaneously. - Function calling feature integrates real-time data (e.g., current exchange rates) into model responses. The course demonstrates building multimodal applications with real-world examples including document analyzers that reason across text and graphs simultaneously, video content extractors that find and timestamp specific information from multiple hours of footage, and automated expense report systems processing receipt images while cross-referencing company policies. Sign up here:

Andrew Ng

74,060 ๆฌก่ง‚็œ‹ โ€ข 1 ๅนดๅ‰

[CLIP] by Hand โœ๏ธ The CLIP (Contrastive Languageโ€“Image Pre-training) model, a groundbreaking work by OpenAI, redefines the intersection of computer vision and natural language processing. It is the basis of all the multi-modal foundation models we see today. How does CLIP work? Goal: ๐ŸŸจ Learn a shared embedding space for text and image [1] Given โ†ณ A mini batch of 3 text-image pairs โ†ณ OpenAI used 400 million text-image pairs to train its original CLIP model. Process 1st pair: "big table" [2] ๐ŸŸช Text โ†’ 2 Vectors (3D) โ†ณ Look up word embedding vectors using word2vec. [3] ๐ŸŸฉ Image โ†’ 2 Vectors (4D) โ†ณ Divide the image into two patches. โ†ณ Flatten each patch [4] Process other pairs โ†ณ Repeat [2]-[3] [5] ๐ŸŸช Text Encoder & ๐ŸŸฉ Image Encoder โ†ณ Encode input vectors into feature vectors โ†ณ Here, both encoders are simple one layer perceptron (linear + ReLU) โ†ณ In practice, the encoders are usually transformer models. [6] ๐ŸŸช ๐ŸŸฉ Mean Pooling: 2 โ†’ 1 vector โ†ณ Average 2 feature vectors into a single vector by averaging across the columns โ†ณ The goal is to have one vector to represent each image or text [7] ๐ŸŸช ๐ŸŸฉ -> ๐ŸŸจ Projection โ†ณ Note that the text and image feature vectors from the encoders have different dimensions (3D vs. 4D). โ†ณ Use a linear layer to project image and text vectors to a 2D shared embedding space. ๐Ÿ‹๏ธ Contrastive Pre-training ๐Ÿ‹๏ธ [8] Prepare for MatMul โ†ณ Copy text vectors (T1,T2,T3) โ†ณ Copy the transpose of image vectors (I1,I2,I3) โ†ณ They are all in the 2D shared embedding space. [9] ๐ŸŸฆ MatMul โ†ณ Multiply T and I matrices. โ†ณ This is equivalent to taking dot product between every pair of image and text vectors. โ†ณ The purpose is to use dot product to estimate the similarity between a pair of image-text. [10] ๐ŸŸฆ Softmax: e^x โ†ณ Raise e to the power of the number in each cell โ†ณ To simplify hand calculation, we approximate e^โ–ก with 3^โ–ก. [11] ๐ŸŸฆ Softmax: โˆ‘ โ†ณ Sum each row for ๐ŸŸฉ imageโ†’๐ŸŸช text โ†ณ Sum each column for ๐ŸŸช textโ†’ ๐ŸŸฉ image [12] ๐ŸŸฆ Softmax: 1 / sum โ†ณ Divide each element by the column sum to obtain a similarity matrix for ๐ŸŸช textโ†’๐ŸŸฉ image โ†ณ Divide each element by the row sum to obtain a similarity matrix for ๐ŸŸฉ imageโ†’๐ŸŸช text [13] ๐ŸŸฅ Loss Gradients โ†ณ The "Targets" for the similarity matrices are Identity Matrices. โ†ณ Why? If I and T come from the same pair (i=j), we want the highest value, which is 1, and 0 otherwise. โ†ณ Apply the simple equation of [Similarity - Target] to compute gradients of for both directions. โ†ณ Why so simple? Because when Softmax and Cross-Entropy Loss are used together, the math magically works out that way. โ†ณ These gradients kick off the backpropagation process to update weights and biases of the encoders and projection layers (red borders).

Tom Yeh

67,834 ๆฌก่ง‚็œ‹ โ€ข 2 ๅนดๅ‰